Skip to content

Commit

Permalink
Fix docker push location (#11)
Browse files Browse the repository at this point in the history
* test with nightly

Signed-off-by: wfan <wfan@yahoo-corp.jp>

* v4

Signed-off-by: wfan <wfan@yahoo-corp.jp>
[b8dedbe] f

Signed-off-by: wfan <wfan@yahoo-corp.jp>
[c0aff18] fff

Signed-off-by: wfan <wfan@yahoo-corp.jp>
[5b20ace] use push output

Signed-off-by: wfan <wfan@yahoo-corp.jp>

* revert

Signed-off-by: wfan <wfan@yahoo-corp.jp>

---------

Signed-off-by: wfan <wfan@yahoo-corp.jp>
  • Loading branch information
WindzCUHK authored Aug 9, 2023
1 parent 9241bcd commit 4aa1153
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker-build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ on:

env:
DOCKER_BUILDX_PLATFORM: linux/amd64
DOCKER_REGISTRY_OWNER: abvaidya
DOCKER_REGISTRY_OWNER: athenz
DOCKER_REGISTRY_USER: abvaidya
GOLANG_VERSION: ^1.20

jobs:
Expand Down Expand Up @@ -180,7 +181,7 @@ jobs:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ${{ env.DOCKER_REGISTRY_URL }} # optional
# Username used to log against the Docker registry
username: ${{ env.DOCKER_REGISTRY_OWNER }} # optional
username: ${{ env.DOCKER_REGISTRY_USER }} # optional
# Password or personal access token used to log against the Docker registry
password: ${{ env.DOCKER_REGISTRY_TOKEN }} # optional
# Log out from the Docker registry at the end of a job
Expand Down Expand Up @@ -211,12 +212,15 @@ jobs:
id: build_and_push
# You may pin to the exact commit or the version.
# uses: https://github.com/docker/build-push-action/tags
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
load: ${{ github.event_name == 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
# push: true
# load: false
# tags: ${{ env.DOCKER_REGISTRY_URL }}/${{ env.DOCKER_REGISTRY_OWNER }}/${{ env.DOCKER_REGISTRY_IMAGE }}:nightly
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.DOCKER_BUILDX_PLATFORM }}
build-args: |
Expand Down

0 comments on commit 4aa1153

Please sign in to comment.