From f2d3674a64fe597198f551efdb8491f8bc76ebb3 Mon Sep 17 00:00:00 2001 From: Jeremy Mouton Date: Tue, 7 Nov 2023 08:42:42 +0100 Subject: [PATCH 1/2] update pipeline --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d91533..db95190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,8 @@ permissions: env: REGISTRY: ghcr.io - APP_NAME: ${{ github.repository }} + IMAGE: ${{ github.repository }} + APP_NAME: github-actions-exporter jobs: build: @@ -53,9 +54,9 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.APP_NAME }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE }} tags: | type=ref,event=branch type=ref,event=pr @@ -65,12 +66,12 @@ jobs: type=sha - name: Log in to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 if: github.event_name != 'pull_request' with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GH_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v4 From 247fc30a31a2252316ec7f453d368e8eedd976d8 Mon Sep 17 00:00:00 2001 From: Jeremy Mouton Date: Tue, 7 Nov 2023 08:44:07 +0100 Subject: [PATCH 2/2] change action version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db95190..d4b150b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile