diff options
| author | suika <2320837+Suika@users.noreply.github.com> | 2021-05-12 04:38:36 +0200 |
|---|---|---|
| committer | suika <2320837+Suika@users.noreply.github.com> | 2021-05-12 04:38:36 +0200 |
| commit | 285a4667c2a0c642a902fbb870d0591b574f7a81 (patch) | |
| tree | 3af18dc3898912cf5e0b5a1f1c0e4e4706e4503c /.github/workflows/container_release.yml | |
| parent | 727287a755bad6c40cca56ee9c5f985d49898a08 (diff) | |
| download | seaweedfs-285a4667c2a0c642a902fbb870d0591b574f7a81.tar.xz seaweedfs-285a4667c2a0c642a902fbb870d0591b574f7a81.zip | |
Enable login/push, build latest/dev on master branch
Login to Docker Hub and Github Container Repo is enabled, need the secrets to be set.
Remove ...image.description because it wil be automatically set.
Diffstat (limited to '.github/workflows/container_release.yml')
| -rw-r--r-- | .github/workflows/container_release.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/container_release.yml b/.github/workflows/container_release.yml index d86b1d1ea..1ade0878e 100644 --- a/.github/workflows/container_release.yml +++ b/.github/workflows/container_release.yml @@ -38,14 +38,14 @@ jobs: buildkitd-flags: "--debug" - name: Login to Docker Hub - if: false + if: github.event_name != 'pull_request' uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GHCR - if: false + if: github.event_name != 'pull_request' uses: docker/login-action@v1 with: registry: ghcr.io @@ -56,7 +56,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ./docker - push: false + push: ${{ github.event_name != 'pull_request' }} file: ./docker/Dockerfile.go_build platforms: linux/amd64 tags: ${{ steps.docker_meta.outputs.tags }} @@ -93,14 +93,14 @@ jobs: buildkitd-flags: "--debug" - name: Login to Docker Hub - if: false + if: github.event_name != 'pull_request' uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GHCR - if: false + if: github.event_name != 'pull_request' uses: docker/login-action@v1 with: registry: ghcr.io @@ -111,7 +111,7 @@ jobs: uses: docker/build-push-action@v2 with: context: ./docker - push: false + push: ${{ github.event_name != 'pull_request' }} file: ./docker/Dockerfile.go_build_large platforms: linux/amd64 tags: ${{ steps.docker_meta.outputs.tags }} |
