Reverting for demo #30
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: myWorkflow | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build Image | |
run: docker build -t jarrettgaither/liatriowebapp . | |
- name: Run Container | |
run: docker run -d -p 80:8080 --name container1 jarrettgaither/liatriowebapp | |
- name: run tests | |
uses: liatrio/github-actions/apprentice-action@0b41561cca6822cc8d880fe0e49e7807a41fdf91 | |
- name: Stop Container | |
run: docker stop container1 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@master | |
with: | |
username: ${{secrets.DOCKER_USERNAME}} | |
password: ${{secrets.DOCKER_PASSWORD}} | |
- name: Build and Push Image | |
uses: docker/build-push-action@master | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: jarrettgaither/liatriowebapp:latest |