Update apprentice-action-test.yml #23
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone code into actions | |
uses: actions/checkout@v2 | |
- name: build Docker image | |
run: | | |
docker build -t latest-d-image . | |
run-container: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: run Docker container | |
run: docker run -p 80:80 latest-d-image | |
test: | |
needs: run-container | |
runs-on: ubuntu-latest | |
steps: | |
- name: run tests | |
run: | | |
docker pull ghcr.io/liatrio/github-actions/apprentice-action:latest | |
docker run -p 80:80 ghcr.io/liatrio/github-actions/apprentice-action:latest | |