Skip to content

report errors when failing to create required steps (#343) #878

report errors when failing to create required steps (#343)

report errors when failing to create required steps (#343) #878

Workflow file for this run

name: Build and push :main image
on:
push:
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()