fix workflow
This commit is contained in:
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user