Skip to content

Commit

Permalink
Update ghcr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xe1os authored Sep 18, 2024
1 parent 15e7364 commit 8ac19dc
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish to GHCR
name: publish to ghcr
on:
workflow_dispatch:
push:
branches:
- master
- iwhite67
jobs:
push:
name: Create build and push to GHCR
name: "Create build and push to GHCR"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -29,24 +29,13 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.TOKEN }}
- id: getversion
uses: Saionaro/extract-package-version@v1.2.1
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3.2.0
if: github.ref != 'refs/heads/master'
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: true
tags: |
ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:next
- uses: docker/build-push-action@v3.2.0
if: github.ref == 'refs/heads/master'
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: true
tags: |
ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:latest,ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:${{ steps.getversion.outputs.version }}
ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:iwhite67

0 comments on commit 8ac19dc

Please sign in to comment.