mirror of
https://github.com/InsanusMokrassar/ConfigurableInlineTelegramBot.git
synced 2024-06-16 23:05:14 +00:00
33 lines
986 B
YAML
33 lines
986 B
YAML
|
name: Publish Docker image
|
||
|
on:
|
||
|
release:
|
||
|
types: [published]
|
||
|
jobs:
|
||
|
push_to_registry:
|
||
|
name: Push Docker image to Docker Hub
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Check out the repo
|
||
|
uses: actions/checkout@v2
|
||
|
- uses: actions/setup-java@v1
|
||
|
with:
|
||
|
java-version: 1.8
|
||
|
- name: Build
|
||
|
run: ./gradlew build
|
||
|
- name: Docker meta
|
||
|
id: docker_meta
|
||
|
uses: crazy-max/ghaction-docker-meta@v1
|
||
|
with:
|
||
|
images: |
|
||
|
insanusmokrassar/configurable_inline_telegram_bot
|
||
|
tag-sha: true
|
||
|
tag-latest: false
|
||
|
- name: Push to Docker Hub
|
||
|
uses: docker/build-push-action@v1
|
||
|
with:
|
||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||
|
repository: insanusmokrassar/configurable_inline_telegram_bot
|
||
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||
|
labels: ${{ steps.docker_meta.outputs.labels }}
|