Skip to content

Commit 4622e4c

Browse files
authored
Create Docker tag 'latest_release' (#2374)
Docker images created during release process will have extra tag 'latest_release'. This closes #2373.
1 parent 756177a commit 4622e4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,14 @@ jobs:
4040
push: true
4141
tags: pyfound/black:latest,pyfound/black:${{ env.GIT_TAG }}
4242

43+
- name: Build and push latest_release tag
44+
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
platforms: linux/amd64,linux/arm64
49+
push: true
50+
tags: pyfound/black:latest_release
51+
4352
- name: Image digest
4453
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)