From f794da853cccbd40b54ce83976a6d7f9f07d6414 Mon Sep 17 00:00:00 2001 From: Jay Danielsen Date: Tue, 15 Oct 2024 11:16:35 -0400 Subject: [PATCH] update for build warnings --- .github/workflows/build-deploy-pipeline.yaml | 6 ++++++ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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