Skip to content

Commit

Permalink
Merge pull request #37 from thibault-cne/new/release
Browse files Browse the repository at this point in the history
Edited the ci action to be able to push to registry
  • Loading branch information
thibault-cne authored Apr 22, 2024
2 parents 852bfe1 + 9b3e1c4 commit eb1a0b6
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@ on:
jobs:
docker_publish:
runs-on: "ubuntu-latest"
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
type=raw,value=latest
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -31,4 +47,6 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit eb1a0b6

Please sign in to comment.