Skip to content

Additional style tweaks. #37

Additional style tweaks.

Additional style tweaks. #37

name: pipetask-plot-navigator
on:
push:
tags:
- "*"
jobs:
docker:
runs-on: ubuntu-latest
if: >
startsWith(github.ref, 'refs/tags/')
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get tag name
run: echo "IMG_TAG=${GITHUB_REF#refs/*/}" >> $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@v2
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:
context: src
push: true
tags: ghcr.io/lsst-dm/pipetask-plot-navigator:${{ env.IMG_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}