Skip to content

Commit

Permalink
add -latest tags to docker builds
Browse files Browse the repository at this point in the history
pk910 committed Nov 29, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent fe7ec88 commit 83b94d1
Showing 4 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/_shared-build.yaml
Original file line number Diff line number Diff line change
@@ -316,14 +316,9 @@ jobs:
docker manifest create ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }} \
--amend ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }}-amd64 \
--amend ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }}-arm64
docker manifest create ${{ inputs.repository }}:${{ inputs.tag }} \
--amend ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }}-amd64 \
--amend ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }}-arm64
- name: Push multiarch docker manifest
run: |
docker manifest push ${{ inputs.repository }}:${{ inputs.tag }}-${{ steps.vars.outputs.sha_short }}
docker manifest push ${{ inputs.repository }}:${{ inputs.tag }}
build_extra_image:
name: Build additional docker manifests
1 change: 1 addition & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ jobs:
docker: ${{ needs.prinfo.outputs.build_docker == 'true' }}
repository: "ethpandaops/dora"
tag: ${{needs.prinfo.outputs.docker_tag}}
additional_tags: "['${{needs.prinfo.outputs.docker_tag}}','${{needs.prinfo.outputs.docker_tag}}-latest']"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ jobs:
docker: true
repository: "ethpandaops/dora"
tag: "master"
additional_tags: "['master-latest']"
additional_tags: "['master','master-latest']"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
docker: true
repository: "ethpandaops/dora"
tag: "v${{ inputs.version }}"
additional_tags: "['latest']"
additional_tags: "['v${{ inputs.version }}','latest']"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit 83b94d1

Please sign in to comment.