This commit is contained in:
Salam-vsem
2025-05-19 15:38:53 +03:00
parent 95e9949dab
commit cee3c8a82a

View File

@@ -18,17 +18,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Extract Docker metadata
- name: Get Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_REGISTRY }}/${{ github.event.repository.name }}
tags: |
type=semver,pattern={{version}}
type=sha
labels: |
org.opencontainers.image.source=${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_OUTPUT
# - name: Debug metadata outputs
# run: echo "${{ toJson(steps.meta.outputs) }}"
@@ -50,8 +44,9 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
- name: Trigger Dokploy Deployment
run: |