Test startup
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user