Test startup

This commit is contained in:
Ryan W
2023-03-24 12:14:32 -07:00
committed by Ryan Williams
parent 44eb4bb974
commit 6ce64fd8a4
+9 -2
View File
@@ -6,6 +6,9 @@ on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
env:
TEST_TAG: rails-on-docker:test
jobs: jobs:
build-and-test-image: build-and-test-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -26,8 +29,12 @@ jobs:
file: ./production.Dockerfile file: ./production.Dockerfile
push: false push: false
load: true load: true
tags: rails-on-docker:latest tags: ${{ env.TEST_TAG }}
- name: Inspect - name: Inspect
run: | run: |
docker image inspect rails-on-docker:latest docker image inspect ${{ env.TEST_TAG }}
- name: Test
run: |
docker run --rm ${{ env.TEST_TAG }}