Skip to content

Commit 33dbb53

Browse files
committed
And maintain :latest image
1 parent 161cffe commit 33dbb53

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/container-publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ jobs:
115115
cache-from: type=gha
116116
cache-to: type=gha,mode=max
117117

118+
# master branch -> :latest container tag
119+
- name: Build and push :latest
120+
id: docker_build
121+
if: ${{ github.ref }} == "refs/heads/master"
122+
uses: docker/build-push-action@v6
123+
with:
124+
context: ./
125+
file: ./Dockerfile
126+
push: true
127+
tags: |
128+
${{ secrets.DOCKER_HUB_USERNAME }}/sockpuppetbrowser:latest
129+
platforms: linux/amd64,linux/arm64
130+
cache-from: type=gha
131+
cache-to: type=gha,mode=max
132+
118133
- name: Image digest
119134
run: echo step SHA ${{ steps.vars.outputs.sha_short }} tag ${{steps.vars.outputs.tag}} branch ${{steps.vars.outputs.branch}} digest ${{ steps.docker_build.outputs.digest }}
120135

0 commit comments

Comments
 (0)