Skip to content

Commit

Permalink
build: publish docker images to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoel committed Sep 30, 2024
1 parent d5c3987 commit c1cfc58
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish-docker
on:
workflow_dispatch:
jobs:
publish:
name: 'Publish OIBus to ghcr.io'
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.REPO_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:build/docker"
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/optimistiksas/oibus:latest
ghcr.io/optimistiksas/oibus:${{ github.ref_name }}

0 comments on commit c1cfc58

Please sign in to comment.