Skip to content

Commit 2d1a2a0

Browse files
committed
Run smoke test in docker container after build/push
1 parent bafd4ea commit 2d1a2a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,15 @@ jobs:
6565
context: .
6666
file: ./docker/${{ matrix.variant }}.dockerfile
6767
platforms: linux/amd64,linux/arm64
68-
push: ${{ github.event_name != 'pull_request' }}
68+
push: true
6969
tags: ${{ steps.docker_meta.outputs.tags }}
7070
labels: ${{ steps.docker_meta.outputs.labels }}
7171
build-args: |
7272
APP_VERSION=${{ steps.docker_meta.outputs.version }}
7373
GIT_SHA=${{ github.sha }}
7474
DOCKER_TAG=${{ steps.docker_meta.outputs.tags }}
75+
76+
- name: Smoke test
77+
run: docker run ${{ steps.docker_meta.outputs.tags }} bin/rails r "Manyfold::Application.initialized?"
78+
env:
79+
RAILS_ENV: production

0 commit comments

Comments
 (0)