2021-03-26 12:03:01 +07:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-09-27 20:53:46 +07:00
|
|
|
- 'main'
|
2021-03-26 12:03:01 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2022-09-27 20:53:46 +07:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-03-26 12:03:01 +07:00
|
|
|
-
|
|
|
|
name: Login to DockerHub
|
2022-09-27 20:53:46 +07:00
|
|
|
uses: docker/login-action@v2
|
2021-03-26 12:03:01 +07:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_SECRET }}
|
2021-03-26 12:12:30 +07:00
|
|
|
-
|
|
|
|
name: Checkout
|
2022-09-27 20:53:46 +07:00
|
|
|
uses: actions/checkout@v3
|
2021-03-26 12:12:30 +07:00
|
|
|
|
2021-03-26 12:03:01 +07:00
|
|
|
-
|
2021-03-26 12:20:52 +07:00
|
|
|
name: Build and Push from Makefile
|
2021-03-26 12:09:15 +07:00
|
|
|
run: |
|
2021-03-26 12:12:30 +07:00
|
|
|
make build
|