Docker Image CI #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |