Merge pull request #5 from j4rj4r/feature-workflow-1

Add github workflow
This commit is contained in:
Jarjar 2023-02-13 10:05:36 +01:00 committed by GitHub
commit 8f3c8e271e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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