Skip to content

docker-release

docker-release #9

Workflow file for this run

name: docker-release
on:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- base: noble
tags: chaste/runner:noble, chaste/runner:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and export to Docker
uses: docker/build-push-action@v4
with:
context: .
pull: true
load: true
build-args: BASE=${{ matrix.base }}
tags: ${{ matrix.tags }}
- name: Test image
run: |
docker run --rm --entrypoint /bin/bash chaste/runner:${{ matrix.base }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
pull: true
push: true
build-args: BASE=${{ matrix.base }}
tags: ${{ matrix.tags }}