Skip to content

Commit

Permalink
Update pipeline dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlena committed Oct 2, 2023
1 parent d18004d commit 3275e9e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
with:
go-version: "1.20"
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Lint code
uses: golangci/golangci-lint-action@v3
- name: Run tests
run: make test
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: cloudlena
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up container image build
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build and push container image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
push: true
tags: cloudlena/s3manager:latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
- run: make test
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v5
with:
args: release --rm-dist
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM docker.io/golang:1 AS builder
FROM docker.io/library/golang:1 AS builder
WORKDIR /usr/src/app
COPY . ./
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -a -installsuffix cgo -o bin/s3manager

FROM docker.io/alpine:latest
FROM docker.io/library/alpine:latest
WORKDIR /usr/src/app
RUN addgroup -S s3manager && adduser -S s3manager -G s3manager
RUN apk add --no-cache \
Expand Down

0 comments on commit 3275e9e

Please sign in to comment.