build-tester-base-image #45
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: build-tester-base-image | |
on: | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
# trigger at 1:30 am every day | |
- cron: '30 1 * * *' | |
concurrency: | |
group: build-tester-base-image | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
if: github.repository == 'geodynamics/aspect' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_LOGIN }} | |
- name: Build and push Docker image for main | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./contrib/docker/tester/ | |
cache-from: type=registry,ref=ubuntu:20.04 | |
cache-to: type=inline | |
push: true | |
tags: geodynamics/aspect-tester:focal-dealii-master |