Skip to content

Adding postgres to runtime config #352

Adding postgres to runtime config

Adding postgres to runtime config #352

Workflow file for this run

---
name: Build Docker Image
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Test Docker Image
uses: docker/build-push-action@v2
with:
build-args: BRANCH=${{ github.ref_name }}
context: "."
push: false
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-test
target: test
- name: Execute Tests
run: docker run ghcr.io/${{ github.repository }}:${{ github.ref_name }}-test
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
build-args: BRANCH=${{ github.ref_name }}
context: "."
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
- name: Trigger Downstream Builds
run: |
curl -XPOST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/magfest/magprime/actions/workflows/ci-docker.yaml/dispatches --data '{"ref": "${{github.ref_name}}"}'
curl -XPOST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/magfest/magwest/actions/workflows/ci-docker.yaml/dispatches --data '{"ref": "${{github.ref_name}}"}'
curl -XPOST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/magfest/magstock/actions/workflows/ci-docker.yaml/dispatches --data '{"ref": "${{github.ref_name}}"}'