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-06-14 21:09:04 +02:00
|
|
|
uses: actions/setup-go@v4
|
2022-03-16 14:38:08 +01:00
|
|
|
with:
|
2023-02-02 13:08:41 +01:00
|
|
|
go-version: "1.20"
|
2022-03-16 14:38:08 +01:00
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Lint code
|
|
|
|
uses: golangci/golangci-lint-action@v3
|
|
|
|
- name: Run tests
|
|
|
|
run: make test
|
2022-03-31 12:12:54 +02:00
|
|
|
- name: Log in to Docker Hub
|
2022-08-04 22:30:04 +02:00
|
|
|
uses: docker/login-action@v2
|
2022-03-31 12:12:54 +02:00
|
|
|
with:
|
|
|
|
username: cloudlena
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
- name: Set up container image build
|
2022-08-04 22:30:04 +02:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2022-03-31 12:12:54 +02:00
|
|
|
- name: Build and push container image
|
2023-06-14 21:09:04 +02:00
|
|
|
uses: docker/build-push-action@v4
|
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
|