fix workflow

This commit is contained in:
2024-10-10 11:50:53 -04:00
parent cb3ea8a496
commit c2b0395657

View File

@@ -3,8 +3,6 @@ name: Docker Image CI
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs: jobs:
build_amd64: build_amd64:
@@ -19,7 +17,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build and push the Docker image - name: Build and push the Docker image
run: docker build . --push --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/discord-bot run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/discord-bot
- uses: actions/checkout@v4
- name: Push the Docker image
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/discord-bot
build_arm64: build_arm64:
runs-on: self-hosted runs-on: self-hosted