Skip to content

Commit

Permalink
change GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
omegion committed Jun 1, 2021
1 parent 906e871 commit 2c800cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Code Check

on:
push:
pull_request:

jobs:
Expand Down Expand Up @@ -66,4 +65,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.37.0
version: v1.37.1
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ARG FROM_IMAGE=alpine:3.12

FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS builder

ARG TARGETOS
ARG TARGETARCH

LABEL org.opencontainers.image.source="https://github.com/omegion/do-db-backup"

Expand All @@ -12,10 +14,10 @@ RUN apk update && \
rm -rf /var/cache/apk/* && \
rm -rf /var/tmp/*

COPY ./ /app

WORKDIR /app

COPY ./ /app

RUN make build TARGETOS=$TARGETOS TARGETARCH=$TARGETARCH

FROM ${FROM_IMAGE}
Expand Down

0 comments on commit 2c800cc

Please sign in to comment.