diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 416e9229..929f718e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,7 +16,7 @@ on: - 'master' env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: xrayr-project/xrayr jobs: build: @@ -42,8 +42,6 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - with: - driver-opts: image=moby/buildkit:master - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -97,8 +95,11 @@ jobs: - name: Create manifest list and push working-directory: /tmp/digests run: | + ls -al + echo docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ + $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) + $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) - name: Inspect image run: | docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} diff --git a/Dockerfile b/Dockerfile index c552b331..c2ccdb81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build go -FROM golang:1.20-alpine AS builder +FROM golang:1.21-alpine AS builder WORKDIR /app COPY . . ENV CGO_ENABLED=0