Skip to content

Commit

Permalink
chore: update ghcr-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NiNiyas committed Jan 2, 2024
1 parent 2a13d23 commit 4529757
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ jobs:
build-and-push-to-ghcr:
runs-on: ubuntu-latest
steps:
- uses: benjlevesque/short-sha@v1.2
- uses: benjlevesque/short-sha@v2.2
id: short-sha
with:
length: 7
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1
- name: Log into GitHub Container Registry
run: echo "${{ secrets.GIT_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3.0.0
with:
image: tonistiigi/binfmt:latest
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0
with:
install: true
version: latest
driver-opts: image=moby/buildkit:master

- name: Build and push
id: docker_build_amd64
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5.1.0
with:
context: ./
file: ./Dockerfile
Expand All @@ -55,6 +55,7 @@ jobs:
tags: github,action,+1,partying_face
priority: 4
image: true
actions: 'default'
details: 'Workflow has been completed successfully!'
headers: '${{ secrets.NTFY_HEADERS }}'

Expand All @@ -67,6 +68,7 @@ jobs:
tags: github,action,failed,rotating_light
priority: 5
image: true
actions: 'default'
details: 'Workflow has failed!'
headers: '${{ secrets.NTFY_HEADERS }}'

Expand All @@ -80,3 +82,4 @@ jobs:
details: 'Workflow has been cancelled!'
headers: '${{ secrets.NTFY_HEADERS }}'
image: true
actions: 'default'

0 comments on commit 4529757

Please sign in to comment.