Skip to content

change port usage from 80 to 8080 #61

change port usage from 80 to 8080

change port usage from 80 to 8080 #61

name: Apprenticeship-action
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/liatrio_apprenticeship_exercise
- name: run image
run: docker run -dp 80:80 ${{secrets.DOCKER_USER}}/liatrio_apprenticeship_exercise
- name: run tests
uses: liatrio/github-actions/apprentice-action@808117af9b4a1e57c4cb79dbcb2d25de5ea3c68d
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Docker Push
run: docker push ${{secrets.DOCKER_USER}}/liatrio_apprenticeship_exercise