2019-11-24 21:31:20 +00:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- scripts/docker/trusty-qt512/Dockerfile
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trusty-qt512:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2019-11-24 22:14:56 +00:00
|
|
|
VERSION: ${{ '0.7' }} # just assigning a number wouldn't get you a string
|
2019-11-24 21:31:20 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Get our pre-reqs
|
|
|
|
run: |
|
|
|
|
cd scripts/docker/trusty-qt512
|
|
|
|
bash getpackages.sh
|
|
|
|
|
2019-11-24 22:14:56 +00:00
|
|
|
- name: set env
|
2019-11-24 21:31:20 +00:00
|
|
|
run: |
|
2019-11-24 22:14:56 +00:00
|
|
|
v=${{ env.VERSION }}
|
|
|
|
echo "::set-env name=NAME::subsurface/trusty-qt512:${v}"
|
|
|
|
|
|
|
|
- name: Build and Publish Linux Docker image to Dockerhub
|
|
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
|
|
with:
|
|
|
|
name: ${{ env.NAME }}
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
dockerfile: 'Dockerfile'
|
|
|
|
workdir: './scripts/docker/trusty-qt512/'
|