Skip to content

Load metric thresholds from S3. #29

Load metric thresholds from S3.

Load metric thresholds from S3. #29

Workflow file for this run

name: docker_build
on:
push:
tags:
- "*"
branches:
- "tickets/**"
jobs:
docker_build:
runs-on: ubuntu-latest
if: >
startsWith(github.ref, 'refs/tags/') ||
startsWith(github.ref, 'refs/heads/tickets/')
steps:
- name: Get tag name
run: echo "IMG_TAG=${GITHUB_REF_NAME#tickets/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/lsst-dm/production_tools:${{ env.IMG_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max