Create docker.yml

This commit is contained in:
Sambo Chea 2021-03-26 12:03:01 +07:00 committed by GitHub
parent 50708b14d7
commit cd2865d480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

35
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,35 @@
# This is a basic workflow to help you get started with Actions
name: CI
name: ci
on:
push:
branches:
- 'master'
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: Build from Makefile
run: |
echo "Start building the image"
make build
-
name: Docker Push
uses: docker/build-push-action@v2
with:
push: true
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}