File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 17
17
build-containers :
18
18
runs-on : ubuntu-latest
19
19
name : Build ${{ matrix.variant }} container
20
+ env :
21
+ TEST_TAG : ${{ github.repository }}-${{ matrix.variant }}-testbuild
20
22
permissions :
21
23
contents : read
22
24
packages : write
63
65
"type=ref,event=tag"
64
66
"type=ref,event=pr"
65
67
66
- - name : Build and push Docker image
68
+ - name : Build Docker image
69
+ uses : docker/build-push-action@v5
70
+ with :
71
+ context : .
72
+ file : Dockerfile.${{ matrix.dockerfile }}
73
+ load : true
74
+ push : false
75
+ tags : ${{ env.TEST_TAG }}
76
+ labels : ${{ steps.meta.outputs.labels }}
77
+ build-args : |
78
+ VARIANT=${{ matrix.variant }}
79
+
80
+ # TODO: actually do something useful here
81
+ - name : Test Docker image
82
+ run : |
83
+ docker run --rm ${{ env.TEST_TAG }} go run github.com/go-debos/debos/cmd/debos@latest
84
+
85
+ - name : Push Docker image
67
86
uses : docker/build-push-action@v5
68
87
with :
69
88
context : .
You can’t perform that action at this time.
0 commit comments