Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ jobs:
run: docker build --target test -t matrixrmapi:test .
- name: Build production target
run: docker build --target production -t matrixrmapi:production .

publish:
needs: [test, snyk-test, docker-build-and-verify]
if: github.event_name == 'pull_request'
runs-on: arc-runner-set
permissions:
contents: read
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/push_to_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,35 @@ jobs:
with:
snyk-org: deployapp-products
snyk-token: ${{ secrets.SNYK_TOKEN }}

# Manual rebuild, release_please.yaml handles releases
publish-image:
if: github.event_name == 'workflow_dispatch' && github.ref_name == 'main'
runs-on: arc-runner-set
permissions:
contents: read
packages: write
concurrency:
group: publish-image-${{ github.ref }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
- name: Check out the last released version
run: |
SEMVER=$(python3 -c "import json; print(json.load(open('.release-please-manifest.json'))['.'])")
echo "Rebuilding v${SEMVER}"
git checkout "v${SEMVER}"
- name: Build and publish Docker image
uses: ./.github/actions/publish-image
with:
product: matrix
component: integration
dockerhub-username: ${{ vars.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
acr-repo: ${{ vars.ACR_REPO }}
acr-username: ${{ vars.ACR_USERNAME }}
acr-token: ${{ secrets.ACR_TOKEN }}
Loading