Skip to content

Commit

Permalink
Add GHA workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctslater committed Jun 7, 2024
1 parent 0bf63f5 commit 1907932
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build-plot-navigator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: plot-navigator

on:
push:
tags:
- "*"

jobs:
docker:
runs-on: ubuntu-latest

if: >
startsWith(github.ref, 'refs/tags/')
steps:

- 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@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:
context: src
push: true
tags: ghcr.io/lsst-dm/plot-navigator:${{ env.IMG_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max

8 changes: 8 additions & 0 deletions .github/workflows/rebase_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Check that 'main' is not merged into the development branch

on: pull_request

jobs:
call-workflow:
uses: lsst/rubin_workflows/.github/workflows/rebase_checker.yaml@main

0 comments on commit 1907932

Please sign in to comment.