Container Image #394
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: Container Image | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
# Weekly on Sundays: | |
- cron: '00 04 * * 0' | |
workflow_dispatch: | |
jobs: | |
container-focal: | |
name: Update Focal CI container image | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'lanl/bml' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push experimental Focal Docker image | |
uses: docker/build-push-action@v4 | |
id: docker_build_focal | |
with: | |
context: . | |
file: Dockerfile-focal | |
push: true | |
tags: nicolasbock/bml:latest, nicolasbock/bml:focal | |
- name: Image digest | |
run: | | |
echo "Focal image: ${{ steps.docker_build_focal.outputs.digest }}" |