Skip to content

Commit 67f5167

Browse files
claudef3l1x
authored andcommitted
CI: polished
1 parent fe9bd2f commit 67f5167

1 file changed

Lines changed: 27 additions & 10 deletions

File tree

.github/workflows/docker.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
push: false
3131
tags: dockette/coder:fx-test
3232
platforms: linux/amd64
33-
cache-from: type=gha
34-
cache-to: type=gha,mode=max
3533
load: true
3634

3735
- name: Smoke test image
@@ -40,11 +38,30 @@ jobs:
4038
build:
4139
name: "Build"
4240
needs: test
43-
uses: dockette/.github/.github/workflows/docker.yml@master
44-
secrets: inherit
45-
with:
46-
image: "dockette/coder"
47-
tag: "fx"
48-
context: "fx"
49-
platforms: "linux/amd64"
50-
push: ${{ github.ref == 'refs/heads/master' }}
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

0 commit comments

Comments
 (0)