-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 924 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
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"
export IMAGE="${IMAGE_HOST}/${IMAGE_NAME}"
export VERSION=latest
make -C src/slack-notification-resource push