summaryrefslogtreecommitdiffstats
path: root/.github/workflows/linux-dockerimage.yml
blob: 857ed5f5aab2122d926e7e7cc20a58ea19f0286a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Docker Image CI

on:
  push:
    paths:
    - scripts/docker/trusty-qt512/Dockerfile


jobs:
  trusty-qt512:
    runs-on: ubuntu-latest
    env:
      VERSION: 0.7

    steps:
    - uses: actions/checkout@v1

    - name: Get our pre-reqs
      run: |
        cd scripts/docker/trusty-qt512
        bash getpackages.sh

    - name: Build the Docker image
      run: docker build ./scripts/docker/trusty-qt512/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}

    - name: Push the Docker image
      run: |
        docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
        docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}