-
Notifications
You must be signed in to change notification settings - Fork 19
61 lines (57 loc) · 1.7 KB
/
container.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Container Image
on:
push:
branches:
- master
schedule:
# Weekly on Sundays:
- cron: '00 04 * * 0'
workflow_dispatch:
jobs:
container-bionic:
name: Update default CI container image (Bionic)
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 default Docker image
uses: docker/build-push-action@v4
id: docker_build_bionic
with:
context: .
file: Dockerfile-bionic
push: true
tags: nicolasbock/bml:bionic
- name: Image digest
run: |
echo "Default image: ${{ steps.docker_build_bionic.outputs.digest }}"
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 }}"