Skip to content

Initial version of the wrapper #3

Initial version of the wrapper

Initial version of the wrapper #3

Workflow file for this run

---
name: Release Slack Notification Resource
on:
push:
branches:
- main
jobs:
image:
if: ${{ github.repository == 'homeport/slack-notification-resource' }}
runs-on: ubuntu-latest
permissions:
packages: write
env:
IMAGE_HOST: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build and push container image
env:
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_USERNAME: ${{ github.repository_owner }}
DOCKER_BUILDKIT: "1"
BUILDKIT_PROGRESS: plain
run: |
docker login \
--username "$REGISTRY_USERNAME" \
--password-stdin \
"$IMAGE_HOST" <<<"$REGISTRY_PASSWORD"
docker build \
--push \
--tag "${IMAGE_HOST}/${IMAGE_NAME}:latest" \
--file src/slack-notification-resource/Dockerfile \
src/slack-notification-resource