documentation and env changes
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -12,6 +12,7 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}
|
||||
@@ -70,6 +71,8 @@ jobs:
|
||||
name: Build production image
|
||||
needs: php-tests
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/tonehaus-app
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -100,3 +103,19 @@ jobs:
|
||||
- name: Smoke-test entrypoint & migrations
|
||||
run: docker run --rm -e APP_SECRET=test-secret --entrypoint /entrypoint.sh tonehaus-app:ci true
|
||||
|
||||
- name: Log in to GHCR
|
||||
if: github.event_name == 'push'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Tag latest image
|
||||
if: github.event_name == 'push'
|
||||
run: docker tag tonehaus-app:ci $IMAGE_NAME:latest
|
||||
|
||||
- name: Push latest image
|
||||
if: github.event_name == 'push'
|
||||
run: docker push $IMAGE_NAME:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user