Skip to content

Commit

Permalink
Compared with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Oct 8, 2023
1 parent 9d694ad commit 6c6e533
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Build, test and deploy bot
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
Expand All @@ -16,7 +14,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
Expand All @@ -37,14 +34,15 @@ jobs:
DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}}
run: |
python -m pytest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_PASSWORD}}
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./dockerfile
push: true
tags: ${{secrets.DOCKER_USER}}/sausage_bot:latest
tags: ${{secrets.DOCKER_USER}}/sausage_bot:latest

0 comments on commit 6c6e533

Please sign in to comment.