Skip to content

Ft/kratos1.1 (#153) #13

Ft/kratos1.1 (#153)

Ft/kratos1.1 (#153) #13

Workflow file for this run

name: Publish docker image on tag push
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Publish Docker image
run: |
cd kratos-admin-ui
docker build . --tag ghcr.io/dfoxg/kratos-admin-ui:$RELEASE_VERSION
docker tag ghcr.io/dfoxg/kratos-admin-ui:$RELEASE_VERSION ghcr.io/dfoxg/kratos-admin-ui:latest
docker push ghcr.io/dfoxg/kratos-admin-ui:$RELEASE_VERSION
docker push ghcr.io/dfoxg/kratos-admin-ui:latest