2021-03-30 09:31:55 +07:00
|
|
|
name: Docker CI
|
|
|
|
|
|
|
|
on:
|
2021-03-30 11:34:42 +07:00
|
|
|
push:
|
2021-03-30 11:35:37 +07:00
|
|
|
branches: [main]
|
2021-03-30 09:31:55 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_SECRET }}
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build and Push from Makefile
|
|
|
|
run: |
|
2021-03-30 12:05:29 +07:00
|
|
|
make build publish
|