diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d91533..d4b150b 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,15 +66,15 @@ 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 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile