mirror of
https://github.com/pischule/go-mention-all-bot.git
synced 2025-12-19 06:56:43 +00:00
Create docker-image.yml
This commit is contained in:
committed by
GitHub
parent
158312e853
commit
2daf56b6a5
31
.github/workflows/docker-image.yml
vendored
Normal file
31
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Docker Login
|
||||||
|
uses: docker/login-action@v2.0.0
|
||||||
|
with:
|
||||||
|
username: ${{DOCKERHUB_LOGIN}}
|
||||||
|
password: ${{DOCKERHUB_PASSWORD}}
|
||||||
|
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . --file Dockerfile --tag pischule/go-mention-all-bot:$(date +%s)
|
||||||
|
|
||||||
|
- name: Push the Docker image
|
||||||
|
run: docker push pischule/go-mention-all-bot
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user