Skip to content

Docker Image CI with bundled gammu #18

Docker Image CI with bundled gammu

Docker Image CI with bundled gammu #18

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