DM-46747 refactor pqserver per SQR-072 #431
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 build of all containers | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Extract Git Tag or Branch | |
id: git_info | |
run: | | |
if [[ "${{ github.ref_type }}" == "tag" ]]; then | |
echo "GITHUB_TAG=${{ github.ref_name }}" >> $GITHUB_ENV | |
else | |
echo "GITHUB_TAG=noversion" >> $GITHUB_ENV | |
fi | |
- name: Build hinfo | |
uses: lsst-sqre/build-and-push-to-ghcr@v1 | |
with: | |
image: ${{ github.repository }}-hinfo | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
dockerfile: Dockerfile.hinfo | |
- name: Build pqserver | |
uses: lsst-sqre/build-and-push-to-ghcr@v1 | |
with: | |
image: ${{ github.repository }}-pq | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
dockerfile: Dockerfile.pqserver | |
build-args: | | |
GITHUB_TAG=${{ env.GITHUB_TAG }} |