s3manager-web/.github/workflows/main.yml
2024-07-18 15:23:54 +02:00

31 lines
848 B
YAML

name: Verify and Push
on: [push, pull_request]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Checkout repo
uses: actions/checkout@v4
- name: Lint code
uses: golangci/golangci-lint-action@v6
- name: Run tests
run: make test
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: cloudlena
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up container image build
uses: docker/setup-buildx-action@v3
- name: Build and push container image
uses: docker/build-push-action@v5
with:
push: true
tags: cloudlena/s3manager:latest
platforms: linux/amd64,linux/arm64