Skip to content

Commit 1cb0cdb

Browse files
committed
Split container workflow to improve performance
Signed-off-by: Nicolas Bock <[email protected]>
1 parent e39623c commit 1cb0cdb

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.github/workflows/container.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
containers:
16-
name: Update CI container images
15+
container-bionic:
16+
name: Update CI container images (Bionic)
1717
runs-on: ubuntu-latest
1818
if: ${{ github.repository == 'lanl/qmd-progress' }}
1919
steps:
@@ -32,6 +32,21 @@ jobs:
3232
file: Dockerfile-bionic
3333
push: true
3434
tags: nicolasbock/qmd-progress:latest, nicolasbock/qmd-progress:bionic
35+
- name: Image digest
36+
run: |
37+
echo "Bionic image: ${{ steps.docker_build_bionic.outputs.digest }}"
38+
container-focal:
39+
name: Update CI container images (Focal)
40+
runs-on: ubuntu-latest
41+
if: ${{ github.repository == 'lanl/qmd-progress' }}
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
- name: Login to DockerHub
46+
uses: docker/login-action@v2
47+
with:
48+
username: ${{ secrets.DOCKERHUB_USERNAME }}
49+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3550
- name: Build and push experimental Focal Docker image
3651
uses: docker/build-push-action@v4
3752
id: docker_build_focal
@@ -40,6 +55,21 @@ jobs:
4055
file: Dockerfile-focal
4156
push: true
4257
tags: nicolasbock/qmd-progress:focal
58+
- name: Image digest
59+
run: |
60+
echo "Focal image: ${{ steps.docker_build_focal.outputs.digest }}"
61+
container-jammy:
62+
name: Update CI container images (Jammy)
63+
runs-on: ubuntu-latest
64+
if: ${{ github.repository == 'lanl/qmd-progress' }}
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@v3
68+
- name: Login to DockerHub
69+
uses: docker/login-action@v2
70+
with:
71+
username: ${{ secrets.DOCKERHUB_USERNAME }}
72+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4373
- name: Build and push experimental Jammy Docker image
4474
uses: docker/build-push-action@v4
4575
id: docker_build_jammy
@@ -50,6 +80,4 @@ jobs:
5080
tags: nicolasbock/qmd-progress:jammy
5181
- name: Image digest
5282
run: |
53-
echo "Bionic image: ${{ steps.docker_build_bionic.outputs.digest }}"
54-
echo "Focal image: ${{ steps.docker_build_focal.outputs.digest }}"
5583
echo "Jammy image: ${{ steps.docker_build_jammy.outputs.digest }}"

0 commit comments

Comments
 (0)