diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 698fbe8..9f143bb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -31,8 +31,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set output id: vars diff --git a/Dockerfile b/Dockerfile index cc00144..8758db6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.3-alpine as builder +FROM golang:1.23.3-alpine AS builder RUN apk add --update make WORKDIR /go/src/github/flagship-io/decision-api @@ -10,11 +10,11 @@ RUN go mod download COPY . . ARG VERSION -ENV VERSION $VERSION +ENV VERSION=$VERSION RUN make build FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY --from=builder /go/src/github/flagship-io/decision-api/bin/server ./ -CMD ["./server"] \ No newline at end of file +CMD ["./server"]