Skip to content

Commit

Permalink
add docker-c workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wysiwys committed Feb 5, 2025
1 parent 0aa4161 commit 05a9b73
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-c.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rebuild C Docker image

# Only run manually for now
on:
workflow_dispatch:
push:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-c

jobs:
build-and-push-image:
runs-on: ubuntu-latest

# We need write access to packages
permissions:
contents: read
packages: write
attestations: write
id-token: write

steps:
- uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
id: push
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .docker/c/
push: true
tags: latest

0 comments on commit 05a9b73

Please sign in to comment.