Skip to content

Docker Image CI

Docker Image CI #65

Workflow file for this run

name: Docker Image CI
on:
release:
types: [ published ]
jobs:
publish-image:
runs-on: ubuntu-latests
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build image
run: ./gradlew bootBuildImage --debug --full-stacktrace
- name: tag to version
run: docker tag folivonet/matrix-sms-bridge:latest folivonet/matrix-sms-bridge:${GITHUB_REF:11}
- name: Publish version tagged image to DockerHub
run: docker push folivonet/matrix-sms-bridge:${GITHUB_REF:11}
- name: Publish latest image to DockerHub
run: docker push folivonet/matrix-sms-bridge:latest