Skip to content

Commit

Permalink
Upgrading upload-artifact to v3 (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
mativm02 authored Oct 3, 2024
1 parent 4164af1 commit 9787268
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
version: latest
args: --out-format=checkstyle:golanglint.xml --timeout=300s --max-issues-per-linter=0 --max-same-issues=0 --new-from-rev=origin/${{ github.base_ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: golangcilint
retention-days: 1
Expand Down Expand Up @@ -90,4 +90,3 @@ jobs:
result_code=${PIPESTATUS[0]}
echo "log=$(sed -ze 's/%/%25/g;s/\n/%0A/g' test.log)" >> $GITHUB_OUTPUT
exit $result_code
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.21 as builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOEXPERIMENT=boringcrypto go build -tags=boringcrypto -o tyk-pump .

FROM debian:bookworm-slim

WORKDIR /opt/tyk-pump

COPY --from=builder /app/tyk-pump .

COPY pump.example.conf /opt/tyk-pump/pump.conf

EXPOSE 8080

ENTRYPOINT ["/opt/tyk-pump/tyk-pump"]
CMD ["--conf=/opt/tyk-pump/pump.conf"]

0 comments on commit 9787268

Please sign in to comment.