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
6dbe7274f5
commit
629f72a876
28
.github/workflows/docker-image.yml
vendored
28
.github/workflows/docker-image.yml
vendored
@@ -3,28 +3,28 @@ name: Docker Image CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore:
|
|
||||||
- 'README.md'
|
|
||||||
- 'docker-compose.yml'
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore:
|
|
||||||
- 'README.md'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Docker Login
|
||||||
name: Login to DockerHub
|
uses: docker/login-action@v2.1.0
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
username: ${{ github.actor }}
|
||||||
-
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: Build and push
|
- name: Docker meta
|
||||||
uses: docker/build-push-action@v3
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
|
images: ghcr.io/pischule/go-mention-all-bot
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v4.0.0
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: pischule/go-mention-all-bot:latest
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
Reference in New Issue
Block a user