mirror of
https://github.com/pischule/go-mention-all-bot.git
synced 2025-12-19 06:56:43 +00:00
Update docker-image.yml
This commit is contained in:
committed by
GitHub
parent
bcbc4222e2
commit
e6987183e2
39
.github/workflows/docker-image.yml
vendored
39
.github/workflows/docker-image.yml
vendored
@@ -8,24 +8,29 @@ on:
|
|||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
-
|
||||||
|
name: Set up QEMU
|
||||||
- name: Docker Login
|
uses: docker/setup-qemu-action@v2
|
||||||
uses: docker/login-action@v2.0.0
|
-
|
||||||
with:
|
name: Set up Docker Buildx
|
||||||
username: ${{secrets.DOCKERHUB_LOGIN}}
|
uses: docker/setup-buildx-action@v2
|
||||||
password: ${{secrets.DOCKERHUB_PASSWORD}}
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
- name: Build the Docker image
|
uses: docker/login-action@v2
|
||||||
run: docker build . --file Dockerfile --tag pischule/go-mention-all-bot
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
- name: Push the Docker image
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
run: docker push pischule/go-mention-all-bot
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: pischule/go-mention-all-bot:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user