@@ -124,28 +124,29 @@ jobs:
124124 id-token : write # Needed for GHCR authentication
125125
126126 steps :
127- # Set up Docker Buildx
128- - name : Set up Docker Buildx
129- uses : docker/setup-buildx-action@v2
130-
131- # Log in to GitHub Container Registry
132- - name : Log in to GitHub Container Registry
133- uses : docker/login-action@v2
134- with :
135- registry : ghcr.io
136- username : ${{ github.actor }}
137- password : ${{ secrets.GITHUB_TOKEN }}
138-
139- # Checkout the specific tag
140127 - name : Checkout tag
141128 uses : actions/checkout@v3
142129 with :
143130 ref : ${{ needs.sync-and-patch.outputs.tag }}
144-
145- - name : Build and push Docker image
146- uses : docker/build-push-action@v6
131+ - uses : actions/setup-go@v5
132+ with :
133+ go-version-file : go.mod
134+ check-latest : true
135+ - uses : docker/setup-qemu-action@v3
136+ - uses : docker/setup-buildx-action@v3
137+ - name : Login to Docker Hub
138+ uses : docker/login-action@v3
139+ with :
140+ registry : ghcr.io
141+ username : ${{ github.actor }}
142+ password : ${{ secrets.GITHUB_TOKEN }}
143+ - name : fetch go modules
144+ run : make vendor
145+ - name : build rootless docker image
146+ uses : docker/build-push-action@v5
147147 with :
148148 context : .
149- file : Dockerfile.rootless
149+ platforms : linux/amd64
150150 push : true
151+ file : Dockerfile.rootless
151152 tags : ghcr.io/${{ github.repository }}:${{ needs.sync-and-patch.outputs.tag }}
0 commit comments