Add github workflow

This commit is contained in:
Jarjar 2023-02-13 09:56:49 +01:00 committed by CAJNA Jarod
parent f8192e0011
commit 2b85b160e0
2 changed files with 29 additions and 1 deletions

View File

@ -7,4 +7,5 @@
./__pycache__/ ./__pycache__/
./GlobalExambBot/__pycache__/ ./GlobalExambBot/__pycache__/
.git .git
*.md *.md
.github

27
.github/workflows/docker-publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
on:
push:
branches:
- 'main'
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: j4rj4r/globalexambot:latest