Skip to content

Merge pull request #25 from startmunich/24-add-notion-links-to-contex… #28

Merge pull request #25 from startmunich/24-add-notion-links-to-contex…

Merge pull request #25 from startmunich/24-add-notion-links-to-contex… #28

name: Slackbot Build
on:
push:
branches: [main]
paths:
- "apps/slackbot/**"
- ".github/workflows/slackbot-build.yaml"
pull_request:
branches: [main]
paths:
- "apps/slackbot/**"
- ".github/workflows/slackbot-build.yaml"
env:
REGISTRY: ghcr.io
IMAGE_NAME: startmunich/slackbot
jobs:
push_to_registry:
name: Push Docker image to Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value={{branch}}
type=raw,value={{sha}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:apps/slackbot"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}