fix(ci): use metadata module to extract tags
This commit is contained in:
parent
edff65d35d
commit
2a7df3d413
@ -128,23 +128,31 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot
|
ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot
|
||||||
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
|
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
|
||||||
tags: type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
|
|
||||||
|
|
||||||
- name: Build images
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: false
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
|
type=raw,value=latest
|
||||||
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.create_release.outputs.release_name }}
|
type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
|
||||||
ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:latest
|
|
||||||
ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:${{ needs.create_release.outputs.release_name }}
|
|
||||||
|
|
||||||
- name: Push images
|
- name: Build and push imagse
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker push ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
|
with:
|
||||||
docker push ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.create_release.outputs.release_name }}
|
build-args: |
|
||||||
docker push ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:latest
|
DOCKER_METADATA_OUTPUT_JSON
|
||||||
docker push ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:${{ needs.create_release.outputs.release_name }}
|
|
||||||
|
# - name: Build images
|
||||||
|
# uses: docker/build-push-action@v6
|
||||||
|
# with:
|
||||||
|
# context: .
|
||||||
|
# push: false
|
||||||
|
# labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
# tags: |
|
||||||
|
# ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
|
||||||
|
# ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.create_release.outputs.release_name }}
|
||||||
|
# ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:latest
|
||||||
|
# ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:${{ needs.create_release.outputs.release_name }}
|
||||||
|
|
||||||
|
# - name: Push images
|
||||||
|
# run: |
|
||||||
|
# docker push ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest
|
||||||
|
# docker push ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.create_release.outputs.release_name }}
|
||||||
|
# docker push ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:latest
|
||||||
|
# docker push ghcr.io/${{ vars.GHCR_USERNAME }}/webexmemebot:${{ needs.create_release.outputs.release_name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user