Skip to content

Commit

Permalink
Merge pull request #66 from Labbs/fix-build-pipeline
Browse files Browse the repository at this point in the history
Fix pipeline build
  • Loading branch information
moutonjeremy authored Nov 7, 2023
2 parents 7c782fd + 247fc30 commit 5e37462
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ permissions:

env:
REGISTRY: ghcr.io
APP_NAME: ${{ github.repository }}
IMAGE: ${{ github.repository }}
APP_NAME: github-actions-exporter

jobs:
build:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5e37462

Please sign in to comment.