Update pipeline dependencies

This commit is contained in:
Lena Fuhrimann 2023-10-02 22:33:53 +02:00
parent a149099ba3
commit c7f082fe75
4 changed files with 10 additions and 10 deletions

View file

@ -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:

View file

@ -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

View file

@ -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:

View file

@ -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 \