s3manager-web/.github/workflows/main.yml

32 lines
848 B
YAML
Raw Normal View History

2022-03-31 12:12:54 +02:00
name: Verify and Push
2020-12-03 10:28:05 +01:00
2020-12-07 10:03:35 +01:00
on: [push, pull_request]
2020-12-03 10:28:05 +01:00
2020-05-04 15:35:59 +02:00
jobs:
2020-12-07 10:03:35 +01:00
verify:
2020-05-04 15:35:59 +02:00
runs-on: ubuntu-latest
steps:
2022-03-16 14:38:08 +01:00
- name: Set up Go
2023-10-12 18:18:50 +02:00
uses: actions/setup-go@v5
2022-03-16 14:38:08 +01:00
with:
2024-04-23 10:16:12 +02:00
go-version: "1.22"
2022-03-16 14:38:08 +01:00
- name: Checkout repo
2023-10-02 22:33:53 +02:00
uses: actions/checkout@v4
2022-03-16 14:38:08 +01:00
- name: Lint code
2024-04-23 10:16:12 +02:00
uses: golangci/golangci-lint-action@v6
2022-03-16 14:38:08 +01:00
- name: Run tests
run: make test
2022-03-31 12:12:54 +02:00
- name: Log in to Docker Hub
2023-10-02 22:33:53 +02:00
uses: docker/login-action@v3
2022-03-31 12:12:54 +02:00
with:
username: cloudlena
2023-10-02 22:33:53 +02:00
password: ${{ secrets.DOCKERHUB_TOKEN }}
2022-03-31 12:12:54 +02:00
- name: Set up container image build
2023-10-02 22:33:53 +02:00
uses: docker/setup-buildx-action@v3
2022-03-31 12:12:54 +02:00
- name: Build and push container image
2023-10-02 22:33:53 +02:00
uses: docker/build-push-action@v5
2022-03-31 12:12:54 +02:00
with:
push: true
tags: cloudlena/s3manager:latest
2022-04-19 19:04:37 +02:00
platforms: linux/amd64,linux/arm64