Skip to content

Merge pull request #60 from camphor-/dependabot/github_actions/action… #12

Merge pull request #60 from camphor-/dependabot/github_actions/action…

Merge pull request #60 from camphor-/dependabot/github_actions/action… #12

name: Build and Push to Docker Registry
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: registry.camph.net
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: registry.camph.net/schedule-notifier:latest
- name: Notify to Slack
uses: craftech-io/slack-action@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()