diff --git a/.github/workflows/branch-cleanup.yml b/.github/workflows/branch-cleanup.yml index 74a2550..bffe201 100644 --- a/.github/workflows/branch-cleanup.yml +++ b/.github/workflows/branch-cleanup.yml @@ -13,12 +13,12 @@ jobs: id: version-tag run: echo "VERSION=$(echo "${{ github.event.ref }}" | sed -e 's,/,-,g')" >> "$GITHUB_OUTPUT" - name: Debug - run: echo "Clean up Docker image example-fastapi-application:${{ steps.version-tag.outputs.VERSION }}" + run: echo "Clean up Docker image ${{ vars.DOCKER_IMAGE_NAME }}:${{ steps.version-tag.outputs.VERSION }}" - name: Delete image if: ${{ steps.version-tag.outputs.VERSION }} uses: bots-house/ghcr-delete-image-action@v1.1.0 with: owner: ${{ github.repository_owner }} - name: example-fastapi-application + name: ${{ vars.DOCKER_IMAGE_NAME }} token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.version-tag.outputs.VERSION }} diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bc63774..7ae55bb 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -41,4 +41,4 @@ jobs: version: ${{ needs.version.outputs.version }} latest: ${{ github.ref == 'refs/heads/main' }} github-token: ${{ secrets.GITHUB_TOKEN }} - docker-image-name: example-fastapi-application + docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }} diff --git a/.github/workflows/remove-untagged.yml b/.github/workflows/remove-untagged.yml index 9887fe2..0a60f63 100644 --- a/.github/workflows/remove-untagged.yml +++ b/.github/workflows/remove-untagged.yml @@ -12,5 +12,5 @@ jobs: - name: Remove untagged Docker images uses: nationalarchives/ds-docker-actions/.github/actions/remove-untagged@main with: - docker-image-name: example-fastapi-application + docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }} github-token: ${{ secrets.GITHUB_TOKEN }}