20
20
packages : write
21
21
attestations : write
22
22
id-token : write
23
+ env :
24
+ IMAGE_BASE_NAME : ' throwtheswitch/madsciencelab'
23
25
24
26
steps :
25
27
- name : ' Checkout GitHub Action'
@@ -38,39 +40,45 @@ jobs:
38
40
username : ${{ secrets.DOCKERHUB_USERNAME }}
39
41
password : ${{ secrets.DOCKERHUB_TOKEN }}
40
42
41
- - name : ' Build and push Docker image throwtheswitch/madsciencelab :${{ github.ref_name }}'
43
+ - name : ' Build and push Docker image $IMAGE_BASE_NAME :${{ github.ref_name }}'
42
44
uses : docker/build-push-action@v6
43
45
with :
44
46
platforms : linux/amd64,linux/arm64
45
47
file : build/standard/docker/Dockerfile
46
48
build-args : CONTAINER_VERSION=${{ github.ref_name }}
47
49
push : ${{ github.event_name != 'pull_request' }}
48
- tags : mkarlesky/madsciencelab :${{ github.ref_name }}, mkarlesky/madsciencelab :latest
50
+ tags : $IMAGE_BASE_NAME :${{ github.ref_name }}, $IMAGE_BASE_NAME :latest
49
51
50
- - name : ' Build and push Docker image throwtheswitch/madsciencelab-plugins:${{ github.ref_name }}'
52
+ - name : ' Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
53
+ env :
54
+ VARIANT : plugins
51
55
uses : docker/build-push-action@v6
52
56
with :
53
57
platforms : linux/amd64,linux/arm64
54
- file : build/plugins /docker/Dockerfile
58
+ file : build/$VARIANT /docker/Dockerfile
55
59
build-args : CONTAINER_VERSION=${{ github.ref_name }}
56
60
push : ${{ github.event_name != 'pull_request' }}
57
- tags : mkarlesky/madsciencelab-plugins :${{ github.ref_name }}, mkarlesky/madsciencelab-plugins :latest
61
+ tags : $IMAGE_BASE_NAME-$VARIANT :${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT :latest
58
62
59
- - name : ' Build and push Docker image throwtheswitch/madsciencelab-arm-none-eabi:${{ github.ref_name }}'
63
+ - name : ' Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
64
+ env :
65
+ VARIANT : arm-none-eabi
60
66
uses : docker/build-push-action@v6
61
67
with :
62
68
platforms : linux/amd64,linux/arm64
63
- file : build/arm-none-eabi /docker/Dockerfile
69
+ file : build/$VARIANT /docker/Dockerfile
64
70
build-args : CONTAINER_VERSION=${{ github.ref_name }}
65
71
push : ${{ github.event_name != 'pull_request' }}
66
- tags : mkarlesky/madsciencelab-arm-none-eabi :${{ github.ref_name }}, mkarlesky/madsciencelab-arm-none-eabi :latest
72
+ tags : $IMAGE_BASE_NAME-$VARIANT :${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT :latest
67
73
68
- - name : ' Build and push Docker image throwtheswitch/madsciencelab-arm-none-eabi-plugins:${{ github.ref_name }}'
74
+ - name : ' Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
75
+ env :
76
+ VARIANT : arm-none-eabi-plugins
69
77
uses : docker/build-push-action@v6
70
78
with :
71
79
platforms : linux/amd64,linux/arm64
72
- file : build/arm-none-eabi-plugins /docker/Dockerfile
80
+ file : build/$VARIANT /docker/Dockerfile
73
81
build-args : CONTAINER_VERSION=${{ github.ref_name }}
74
82
push : ${{ github.event_name != 'pull_request' }}
75
- tags : mkarlesky/madsciencelab-arm-none-eabi-plugins :${{ github.ref_name }}, mkarlesky/madsciencelab-arm-none-eabi-plugins :latest
83
+ tags : $IMAGE_BASE_NAME-$VARIANT :${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT :latest
76
84
0 commit comments