Add files via upload #712
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: whoan/docker-build-with-cache-action@master | |
with: | |
username: "${{ secrets.DOCKER_USERNAME }}" | |
password: "${{ secrets.DOCKER_PASSWORD }}" | |
dockerfile: Docker/Dockerfile | |
image_name: geog0111 | |
push_git_tag: true | |
push_image_and_stages: true | |
- name: Run test | |
run: | | |
docker run --rm -d --name test_container -p 8888:8888 "${{ secrets.DOCKER_USERNAME }}"/geog0111 | |
docker run --link test_container:test_container waisbrot/wait | |
curl --fail http://localhost:8888 | |
# - name: Build the Docker image | |
# run: docker build . --file Dockerfile --tag geog:$(date +%s) | |