Merge pull request #5 from j4rj4r/feature-workflow-1
Add github workflow
This commit is contained in:
commit
8f3c8e271e
@ -7,4 +7,5 @@
|
||||
./__pycache__/
|
||||
./GlobalExambBot/__pycache__/
|
||||
.git
|
||||
*.md
|
||||
*.md
|
||||
.github
|
||||
|
||||
27
.github/workflows/docker-publish.yml
vendored
Normal file
27
.github/workflows/docker-publish.yml
vendored
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user