Skip to content

Update apprentice-action-test.yml #21

Update apprentice-action-test.yml

Update apprentice-action-test.yml #21

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 lukehaz/latest-d-image .
docker run -p 80:80 lukehaz/latest-d-image
test:
needs: build
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