Skip to content

Commit

Permalink
Merge pull request #36 from lsst-sqre/tickets/DM-41850
Browse files Browse the repository at this point in the history
DM-41850: Add workflow to build docker image
  • Loading branch information
jonathansick authored Nov 22, 2023
2 parents 1ffb71c + ccf6f6b commit 0d4c55a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

"on":
merge_group: {}
pull_request: {}
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest

# (optional) only build on tags or ticket branches
if: >
startsWith(github.ref, 'refs/tags/')
|| startsWith(github.head_ref, 'tickets/')
steps:
- uses: actions/checkout@v3

- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
with:
image: ${{ github.repository }} # e.g. lsst-sqre/safirdemo
github_token: ${{ secrets.GITHUB_TOKEN }}

- run: echo Pushed ghcr.io/${{ github.repository }}:${{ steps.build.outputs.tag }}

0 comments on commit 0d4c55a

Please sign in to comment.