File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,56 +12,13 @@ permissions:
1212 contents : read
1313
1414jobs :
15- test :
16- name : " Test"
17- runs-on : ubuntu-latest
18- steps :
19- - name : Checkout
20- uses : actions/checkout@v6
21-
22- - name : Set up Docker Buildx
23- uses : docker/setup-buildx-action@v4
24-
25- - name : Build image for testing
26- uses : docker/build-push-action@v7
27- with :
28- context : ./fx
29- file : ./fx/Dockerfile
30- push : false
31- tags : dockette/coder:fx-test
32- platforms : linux/amd64
33- load : true
34-
35- - name : Smoke test image
36- run : make test DOCKER_TAG=fx-test
37-
3815 build :
3916 name : " Build"
40- needs : test
41- runs-on : ubuntu-latest
42- steps :
43- - name : Checkout
44- uses : actions/checkout@v6
45-
46- - name : Login to DockerHub
47- uses : docker/login-action@v4
48- with :
49- username : ${{ secrets.DOCKERHUB_USERNAME }}
50- password : ${{ secrets.DOCKERHUB_TOKEN }}
51-
52- - name : Set up QEMU
53- uses : docker/setup-qemu-action@v4
54-
55- - name : Set up Docker Buildx
56- uses : docker/setup-buildx-action@v4
57-
58- - name : Build and push
59- uses : docker/build-push-action@v7
60- with :
61- context : ./fx
62- file : ./fx/Dockerfile
63- push : ${{ github.ref == 'refs/heads/master' }}
64- tags : dockette/coder:fx
65- platforms : linux/amd64
66- cache-from : type=gha
67- cache-to : type=gha
17+ uses : dockette/.github/.github/workflows/docker.yml@master
18+ secrets : inherit
19+ with :
20+ image : " dockette/coder"
21+ tag : " fx"
22+ context : " fx"
23+ platforms : " linux/amd64"
24+ push : ${{ github.ref == 'refs/heads/master' }}
You can’t perform that action at this time.
0 commit comments