Merge pull request #10 from lsst-dm/tickets/DM-42618 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
"on": | |
push: | |
branches-ignore: | |
# These should always correspond to pull requests, so ignore them for | |
# the push trigger and let them be triggered by the pull_request | |
# trigger, avoiding running the workflow twice. This is a minor | |
# optimization so there's no need to ensure this is comprehensive. | |
- "dependabot/**" | |
- "renovate/**" | |
- "tickets/**" | |
- "u/**" | |
tags: | |
- "*" | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
#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 }} |