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

31 lines
811 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
uses: actions/setup-go@v3
with:
go-version: "1.18"
- 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
uses: docker/login-action@v1
with:
username: cloudlena
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up container image build
uses: docker/setup-buildx-action@v1
- name: Build and push container image
uses: docker/build-push-action@v2
with:
push: true
tags: cloudlena/s3manager:latest