diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 625f6698..b80ed9b8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -40,7 +40,7 @@ jobs: echo "::set-output name=RELEASE_TIME::$(git show -s --format=%cI HEAD)" - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@master + uses: elgohr/Publish-Docker-Github-Action@v4 env: VERSION: ${{ github.ref_name }} COMMIT: ${{ github.sha }} diff --git a/Dockerfile b/Dockerfile index 67bcba21..b7d0f725 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ RUN go mod download COPY . . # Build the application -RUN go build -ldflags "-X main.commit=${COMMIT} -X main.version=${VERSION} -X main.date=${DATE}" -o pg_timetable . +RUN go build -buildvcs=false -ldflags "-X main.commit=${COMMIT} -X main.version=${VERSION} -X main.date=${DATE}" -o pg_timetable . FROM scratch