@@ -11,43 +11,46 @@ jobs:
11
11
name : Builds a docker image and extracts generated hostconfigs
12
12
strategy :
13
13
matrix :
14
- compiler : [clang-10 , gcc-11 ]
14
+ compiler : [clang-14 , gcc-13 ]
15
15
env :
16
16
REPO : axom/tpls
17
17
HOSTCONFIG_LOC : /home/axom/export_hostconfig
18
18
DOCKERFILE_PREFIX : ./scripts/docker/dockerfile_
19
19
steps :
20
20
- name : Extract branch name
21
21
shell : bash
22
- run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
22
+ run : |
23
+ echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
23
24
id : extract_branch
24
25
- name : Get dockerfile name
25
26
shell : bash
26
- run : echo "##[set-output name=filename;]$(echo ${DOCKERFILE_PREFIX}${{ matrix.compiler }})"
27
+ run : |
28
+ echo "filename=$(echo ${DOCKERFILE_PREFIX}${{ matrix.compiler }})" >> $GITHUB_OUTPUT
27
29
id : dockerfile_name
28
30
- name : Get dockerhub repo name
29
31
shell : bash
30
32
run : |
31
- echo ${REPO}:${{ matrix.compiler }}_`date "+%m-%d-%y_%Hh-%Mm"`
32
- echo "##[set-output name=repo_plus_tag;]$(echo ${REPO}:${{ matrix.compiler }}_`date "+%m-%d-%y_%Hh-%Mm"`)"
33
- echo "##[set-output name=repo_plus_latest;]$(echo ${REPO}:${{ matrix.compiler }}_latest)"
33
+ repo_plus_tag=$(echo ${REPO}:${{ matrix.compiler }}_`date "+%m-%d-%y_%Hh-%Mm"`) && export repo_plus_tag
34
+ echo $repo_plus_tag
35
+ echo "repo_plus_tag=$repo_plus_tag" >> $GITHUB_OUTPUT
36
+ echo "repo_plus_latest=$(echo ${REPO}:${{ matrix.compiler }}_latest)" >> $GITHUB_OUTPUT
34
37
id : repo_name
35
38
36
39
- name : Checkout
37
- uses : actions/checkout@v2
40
+ uses : actions/checkout@v4
38
41
39
42
- name : Set up Docker Buildx
40
- uses : docker/setup-buildx-action@v1
43
+ uses : docker/setup-buildx-action@v3
41
44
42
45
- name : Login to DockerHub
43
- uses : docker/login-action@v1
46
+ uses : docker/login-action@v3
44
47
with :
45
48
username : ${{ secrets.DOCKERHUB_USERNAME }}
46
49
password : ${{ secrets.DOCKERHUB_TOKEN }}
47
50
48
51
- name : Build and push
49
52
id : docker_build
50
- uses : docker/build-push-action@v2
53
+ uses : docker/build-push-action@v5
51
54
with :
52
55
push : true
53
56
tags : ${{ steps.repo_name.outputs.repo_plus_tag }},${{ steps.repo_name.outputs.repo_plus_latest }}
66
69
docker rm extract_hc
67
70
68
71
- name : Upload hostconfig
69
- uses : actions/upload-artifact@v2
72
+ uses : actions/upload-artifact@v4
70
73
with :
71
74
name : ${{ matrix.compiler }}_hostconfigs
72
75
path : ./extracted_hc/export_hostconfig/*
0 commit comments