diff --git a/.github/workflows/build-deploy-pipeline.yaml b/.github/workflows/build-deploy-pipeline.yaml index 65ea3ec..e461485 100644 --- a/.github/workflows/build-deploy-pipeline.yaml +++ b/.github/workflows/build-deploy-pipeline.yaml @@ -23,6 +23,12 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v4 + - name: Ensure go.sum exists + run: | + if [ ! -f go.sum ]; then + go mod tidy + fi + - name: Get dependencies run: go mod download diff --git a/Dockerfile b/Dockerfile index a7f543e..25cca4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.13-alpine3.10 as build +FROM golang:1.13-alpine3.10 AS build RUN apk add --no-cache --update git make