Initial version of the wrapper #3
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: 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 |