PTEUDO-1088: changed the hash function, refactoring, working in progress #813
This file contains 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
name: Build and push :main image | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Log in to GHCR | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Image | |
env: | |
REGISTRY: ghcr.io/${{ github.repository_owner }} | |
BUILDKIT_PROGRESS: plain | |
run: | | |
echo 'db-controller-namespace' > .id | |
make docker-build | |
make docker-build-dbproxy | |
make docker-build-dsnexec | |
- name: Push to GHCR | |
env: | |
REGISTRY: ghcr.io/${{ github.repository_owner }} | |
BUILDKIT_PROGRESS: plain | |
run: | | |
echo -n "FIXME: only do this on main branch" | |
make docker-push | |
make docker-push-dbproxy | |
make docker-push-dsnexec | |
- uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
channel: '#db-controller' | |
if: failure() |