Docker Image CI with bundled gammu #17
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 with bundled gammu | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
publish-image: | |
runs-on: ubuntu-latest | |
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: gradle docker-gammu | |
- name: Publish version tagged image to DockerHub | |
run: docker push folivonet/matrix-sms-bridge:${GITHUB_REF:11}-gammu | |
- name: Publish latest image to DockerHub | |
run: docker push folivonet/matrix-sms-bridge:latest-gammu |