diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-06-04 14:40:44 +0100 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-06-04 14:40:44 +0100 |
| commit | 1b165628ac2841ca013520fb71130b8c187af0b4 (patch) | |
| tree | ae839d037dacfbbaac660e2f4d1fe9f4f46c7779 /.github/workflows/docker-publish.yml | |
| parent | 04b137385ecb6391f952f40b9052c56382cdf242 (diff) | |
| download | git.zue.dev-1b165628ac2841ca013520fb71130b8c187af0b4.tar git.zue.dev-1b165628ac2841ca013520fb71130b8c187af0b4.tar.gz git.zue.dev-1b165628ac2841ca013520fb71130b8c187af0b4.tar.bz2 git.zue.dev-1b165628ac2841ca013520fb71130b8c187af0b4.tar.xz git.zue.dev-1b165628ac2841ca013520fb71130b8c187af0b4.zip | |
add basic docker publish workflow
Diffstat (limited to '.github/workflows/docker-publish.yml')
| -rw-r--r-- | .github/workflows/docker-publish.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..90d0331 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,38 @@ +name: Publish Docker Image + +on: + push: + branches: [master] + workflow_dispatch: + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push cgit image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository }}/cgit:latest + + - name: Build and push debian image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository }}/debian:latest |
