Skip to content

Build Docker for Pangolin #335

Build Docker for Pangolin

Build Docker for Pangolin #335

name: Build Docker for Pangolin
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
jobs:
generate:
name: Build Pangolin Docker
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected]
- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: ghcr.io/bimberlabinternal/devops
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
- name: Build and push
id: docker_build
uses: docker/[email protected]
with:
file: ./containers/pangolin/Dockerfile
context: ./containers/pangolin
build-args: |
"GH_PAT=${{ secrets.PAT }}"
pull: true
push: true
tags: ghcr.io/bimberlabinternal/pangolin:latest
labels: |
${{ steps.docker_meta.outputs.labels }}
org.opencontainers.image.title=pangolin
org.opencontainers.image.description=This builds a container to run pangolin