File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 2222 username : ${{ secrets.DOCKERHUB_USER }}
2323 password : ${{ secrets.DOCKERHUB_TOKEN }}
2424
25+ - name : Extract metadata
26+ id : metadata
27+ uses : docker/metadata-action@v5
28+ with :
29+ images : |
30+ ${{ secrets.DOCKERHUB_USER }}/${{ env.IMAGE_NAME }}
31+ # "latest" is automatically generated
32+ # Docs: https://github.com/docker/metadata-action?tab=readme-ov-file#latest-tag
33+ tags : |
34+ type=semver,pattern={{version}}
35+
2536 - name : Set up Docker Buildx
2637 uses : docker/setup-buildx-action@v3
2738 with :
3849 platforms : linux/amd64,linux/arm64
3950 builder : ${{ steps.buildx.outputs.name }}
4051 push : true
41- tags : ${{ secrets.DOCKERHUB_USER }}/${{ env.IMAGE_NAME }}:latest
52+ tags : ${{ steps.metadata.outputs.tags }}
4253 cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USER }}/${{ env.IMAGE_NAME }}:buildcache
4354 cache-to : type=registry,ref=${{ secrets.DOCKERHUB_USER }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
Original file line number Diff line number Diff line change 1- name : Docker Image CI
1+ name : Tests
22
33env :
44 IMAGE_NAME : mirror-to-gitea
You can’t perform that action at this time.
0 commit comments