Skip to content

Commit 3556511

Browse files
separate build and push
1 parent 4a9e98e commit 3556511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: build images
2727
run: |
2828
docker login --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
29-
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ${{ env.DOCKER_REPO }}:pg${{ matrix.version }} --build-arg VERSION=${{ matrix.version }} .
29+
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ env.DOCKER_REPO }}:pg${{ matrix.version }} --build-arg VERSION=${{ matrix.version }} .
30+
docker push ${{ env.DOCKER_REPO }}:pg${{ matrix.version }}
3031
if [ "${{ matrix.version }}" = "${{ env.LATEST }}" ]; then
3132
docker tag ${{ env.DOCKER_REPO }}:pg${{ matrix.version }} ${{ env.DOCKER_REPO }}:latest
3233
docker push ${{ env.DOCKER_REPO }}:latest

0 commit comments

Comments
 (0)