Skip to content

Commit

Permalink
Update images workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Mar 13, 2021
1 parent 14cb208 commit 6aee8ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
go:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [ base ]
env:
BASE_IMAGE: ghcr.io/crazy-max/xgo:base
Expand Down Expand Up @@ -144,14 +145,12 @@ jobs:
org.opencontainers.image.vendor=CrazyMax
-
name: Login to DockerHub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Login to GHCR
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
registry: ghcr.io
Expand All @@ -165,4 +164,4 @@ jobs:
./docker-bake.hcl
${{ steps.docker_meta.outputs.bake-file }}
targets: go-${{ matrix.go_version }}
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
push: true

0 comments on commit 6aee8ee

Please sign in to comment.