Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
4t145 committed Jul 8, 2024
1 parent fee5c60 commit 4da3e85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/admin-server-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

release-docker:
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')
needs: [check]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
dockerfile: resource/docker/spacegate-admin-server/Dockerfile
registry: ghcr.io
image: spacegate-admin-server
tags: ${{ github.ref_name }}
tags: ${{ (startsWith(github.ref, 'refs/tags/') && github.ref_name) || github.sha }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}

Expand All @@ -151,6 +151,6 @@ jobs:
dockerfile: resource/docker/spacegate-admin-server/Dockerfile
registry: docker.io
image: ecfront/spacegate-admin-server
tags: ${{ github.ref_name }}
tags: ${{ (startsWith(github.ref, 'refs/tags/') && github.ref_name) || github.sha }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit 4da3e85

Please sign in to comment.