Skip to content

Commit

Permalink
added publish to dockerhub action
Browse files Browse the repository at this point in the history
* upon push
* using the token
* also creating snapshots (for reproducibility)
* adding badge for publish action
* moving testing script
  • Loading branch information
Kevin committed Jan 24, 2020
1 parent 0969bcc commit f12e0ae
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: ./build-docker.sh && ./run-docker.sh && ./test/wait-for-it.sh localhost:8090 -t 120
run: ./build-docker.sh && ./run-docker.sh && ./docker_files/wait-for-it.sh localhost:8090 -t 120
15 changes: 15 additions & 0 deletions .github/workflows/publishdocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish Docker
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: materialscloud/tools-barebone
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
snapshot: true

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# tools-barebone

[![Actions Status](https://github.com/materialscloud-org/tools-barebone/workflows/Docker%20Image%20Build%20CI/badge.svg)](https://github.com/materialscloud-org/tools-barebone/actions)
[![Actions Status](https://github.com/materialscloud-org/tools-barebone/workflows/Publish%20Docker/badge.svg)](https://github.com/materialscloud-org/tools-barebone/actions)


`tools-barebone` is a framework to develop and deploy small web apps,
implemented in Python using Flask Jinja2 templates.
Expand Down

0 comments on commit f12e0ae

Please sign in to comment.