Add Github Actions

This commit is contained in:
2020-12-28 04:39:05 +00:00
parent e51a8d048f
commit f412cb3c07
7 changed files with 64 additions and 75 deletions

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

@@ -0,0 +1,34 @@
name: Docker Build
on:
push:
branches:
- main
env:
IMAGE_REPO: ghcr.io/hotarublaze
IMAGE_NAME: fluttershub
jobs:
main:
runs-on: ubuntu-latest
# If running with act, Uncomment below
# container: phaze9/action-runner
env:
DOCKER_CONFIG: $HOME/.docker
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: HotaruBlaze
password: ${{ secrets.CR_PAT }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:latest