Skip to content

Commit

Permalink
feat: add ghcr ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Apr 24, 2024
1 parent 38929a1 commit 210c599
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI

permissions:
actions: write
packages: write

on:
push:
Expand Down Expand Up @@ -61,3 +62,28 @@ jobs:
module_name: transpire
secrets:
TRANSPIRE_CI_PAT: ${{ secrets.TRANSPIRE_CI_PAT }}

ghcr-ci:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v2

- id: metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/ocf/transpire
flavor: latest=true

- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v4
with:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: true

0 comments on commit 210c599

Please sign in to comment.