Skip to content

Commit

Permalink
ci: Create container build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hcnp committed May 16, 2024
1 parent b39349b commit d392d97
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/container-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: FUT Infrastructure IG Publisher image build

on:
workflow_dispatch: # Enable manual run on main
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main

env:
REGISTRY: ghcr.io
CONTENT_PATH: ./
IMAGE_NAME: ${{ github.repository }}
CONTAINER_DESCRIPTION: "Non-root FHIR ig-publisher container"

jobs:
container:
name: Container build & push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=edge
type=raw,${{ github.ref }}
labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.description=${{ env.CONTAINER_DESCRIPTION }}
- name: build
uses: aevea/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ${{ env.IMAGE_NAME }}
tag: ${{ steps.meta.outputs.tags }}

0 comments on commit d392d97

Please sign in to comment.