From c2563cb29411c26802c131f457297c9e72bcc905 Mon Sep 17 00:00:00 2001 From: txix Date: Thu, 10 Sep 2026 14:19:17 +0300 Subject: [PATCH] 2026-09-10 14:19:17: merge [main:bca4b4adaf452bdfab6997387a60cbbc7aa04a9d]; --- .github/workflows/publish-ghcr.yml | 60 ------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/publish-ghcr.yml diff --git a/.github/workflows/publish-ghcr.yml b/.github/workflows/publish-ghcr.yml deleted file mode 100644 index ba1e511..0000000 --- a/.github/workflows/publish-ghcr.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Create and publish a Docker image - -on: - push: - tags: - - 'v*' - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - APP_NAME: ${{ github.event.repository.name }} - -jobs: - build-and-push-image: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - attestations: write - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Get version from tag - id: version_reader - run: | - VERSION=${GITHUB_REF_NAME#v} - echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - driver: docker-container - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image - id: push - uses: docker/build-push-action@v6 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version_reader.outputs.version }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - labels: | - org.opencontainers.image.title=${{ env.IMAGE_NAME }} - org.opencontainers.image.version=${{ steps.version_reader.outputs.version }} - build-args: | - app_name=${{ env.APP_NAME }} - version=${{ steps.version_reader.outputs.version }} - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v2 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true \ No newline at end of file