Skip to content

Commit

Permalink
Github action time
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Oct 21, 2024
1 parent c223844 commit 30268e8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,22 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
- name: Install nix
uses: cachix/install-nix-action@v27
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
extra_nix_config: |
trusted-public-keys = pingu.cachix.org-1:42+JuilNrMORsv7pUKCrpzAB5ykq1Y7XVEf+Wl8TVFg=
substituters-extra = https://pingu.cachix.org
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5
- run: nix build .\#docker
- run: docker load < ./result

- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
context: .
push: true
image: mat-chalmers
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 30268e8

Please sign in to comment.