Skip to content

Changing listening port to 8080 #22

Changing listening port to 8080

Changing listening port to 8080 #22

Workflow file for this run

name: Tester
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:80 --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