Ci image #3
Workflow file for this run
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: image_ci | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_push_metatlas_shifter_image: | |
name: Build/push doejgi/metatlas_ci docker image | |
if: github.repository == 'biorack/metatlas' && (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build metatlas_ci image | |
id: build | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./docker | |
file: ./docker/Dockerfile.ci | |
platforms: linux/amd64 | |
cache-to: type=inline | |
tags: | | |
ghcr.io/biorack/metatlas/metatlas_ci:1.2.0 | |
push: true |