Add Docker build configuration and GitHub Actions CI workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CI/CD workflow for core-geonetwork (MetaSpace) | |
| # | |
| # Build Strategy: | |
| # - On push to metaspace branch: builds and pushes images to Artifactory | |
| # - Triggers k8s-apps-config pipeline to update manifests | |
| # - ArgoCD syncs the updated manifests to the cluster | |
| # | |
| # This workflow triggers a Bitbucket pipeline to update the GitOps repository. | |
| name: CI/CD | |
| on: | |
| push: | |
| branches: [metaspace] | |
| jobs: | |
| build: | |
| uses: manaakiwhenua/github-workflows/.github/workflows/docker-build.yml@main | |
| with: | |
| bake_file: docker-bake.hcl | |
| bake_target: default | |
| push: ${{ github.event_name != 'pull_request' }} | |
| registry_host: ${{ vars.ARTIFACTORY_HOST }} | |
| registry_username: ${{ vars.ARTIFACTORY_USERNAME }} | |
| secrets: | |
| ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} | |
| REGISTRY_CA_CERT: ${{ secrets.REGISTRY_CA_CERT }} |