Skip to content

Commit 27aff5e

Browse files
committed
Bump version of framework
1 parent 6b874dc commit 27aff5e

File tree

6 files changed

+1297
-4
lines changed

6 files changed

+1297
-4
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release integrations
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-and-push-image:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: read
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
- name: Build and push Docker image
18+
run: |
19+
# Loop through changed folders under integrations/
20+
for file in $(git diff --name-only HEAD^ HEAD -- integrations/registry.yaml); do
21+
# Get the type from registry.yaml
22+
type=$(yq eval '.type' $file)
23+
folder=$(dirname $file)
24+
# Get the version from registry.yaml
25+
version=$(yq eval '.version' $file)
26+
27+
# Check if the version exists in the registry
28+
if docker pull ghcr.io/port-labs/port-ocean-$type:$version; then
29+
echo "Image already exists in the registry: port-ocean-$type:$version"
30+
else
31+
echo "Building and pushing new image: port-ocean-$type:$version"
32+
docker build -t ghcr.io/port-labs/port-ocean-$type:$version $folder
33+
docker push ghcr.io/port-labs/port-ocean-$type:$version
34+
fi
35+
done

integrations/pager_duty/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Any, Dict, List
2-
from integrations.pager_duty.clients.pager_duty import PagerDutyClient
2+
from clients.pager_duty import PagerDutyClient
33

44

55
from port_ocean.context.event import event_context

0 commit comments

Comments
 (0)