diff --git a/.dockerignore b/.dockerignore index f55198e..bc31cce 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,4 +7,5 @@ ./__pycache__/ ./GlobalExambBot/__pycache__/ .git -*.md \ No newline at end of file +*.md +.github diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..a7f2e6b --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -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