diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-11-24 14:14:56 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-28 11:12:59 -0800 |
commit | 95a2a670e3e7a6aae81ef0970e99750d41709570 (patch) | |
tree | e7aa5957e874a582789d964effe87e3ee801dbb9 /.github/workflows/linux-dockerimage.yml | |
parent | 8c641402207dcee2f17de6f18c463a40b6434847 (diff) | |
download | subsurface-95a2a670e3e7a6aae81ef0970e99750d41709570.tar.gz |
GitHub Actions: push Linux and Android containers to docker hub
For now simply using the existing version numbers.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.github/workflows/linux-dockerimage.yml')
-rw-r--r-- | .github/workflows/linux-dockerimage.yml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/linux-dockerimage.yml b/.github/workflows/linux-dockerimage.yml index 857ed5f5a..25894aa35 100644 --- a/.github/workflows/linux-dockerimage.yml +++ b/.github/workflows/linux-dockerimage.yml @@ -10,7 +10,7 @@ jobs: trusty-qt512: runs-on: ubuntu-latest env: - VERSION: 0.7 + VERSION: ${{ '0.7' }} # just assigning a number wouldn't get you a string steps: - uses: actions/checkout@v1 @@ -20,10 +20,16 @@ jobs: 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 + - name: set env 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} + 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/' |