Fixed build (finally)

This commit is contained in:
Marc Ole Bulling
2021-12-10 19:24:59 +01:00
parent d16d250a8d
commit 20ea34ffe9
3 changed files with 1 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ jobs:
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin
- name: build the image
run: |
go mod tidy
docker buildx build --tag f0rc3/gokapi:latest --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
- name: push the image
run: |

View File

@@ -30,7 +30,6 @@ jobs:
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin
- name: build the image
run: |
go mod tidy
docker buildx build --tag f0rc3/gokapi:latest --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
- name: push the image
run: |

View File

@@ -6,7 +6,7 @@ FROM golang:1.17 AS build_base
RUN mkdir /compile
COPY go.mod /compile
RUN cd /compile && go mod download
RUN cd /compile && go mod tidy && go mod download
COPY . /compile