build dockerfile in gha

This commit is contained in:
Wing Lian
2023-05-07 02:58:21 -04:00
parent 4818380fa6
commit 2634689774
2 changed files with 48 additions and 0 deletions

29
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: ci
on:
push:
branches:
- "main"
- "dev"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: false
tags: winglian/axolotl:latest