Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
${{ runner.os }}-turbo-

- name: Set up Node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -153,3 +153,32 @@ jobs:
run: |
cd destinations/airbyte-faros-destination && \
npm publish --dry-run

test-publish-connectors:
name: Publish connectors
runs-on: ubuntu-latest
# timeout-minutes: 20
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish connector images
env:
TAG_VERSION: v0.16.9-rc0
run: |
for connector_path in $(ls -d sources/*/ destinations/*/)
do
./scripts/publish-connector.sh $connector_path ${{ env.TAG_VERSION }}
done
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ jobs:
- name: Check out
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract tag version
id: extract-tag-version
run: |
Expand Down
9 changes: 4 additions & 5 deletions scripts/publish-connector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ echo "Image version tag: $version_tag"

docker manifest inspect $version_tag > /dev/null
if [ "$?" == 1 ]; then
docker build . \
docker buildx build . \
--build-arg path=$connector_path \
--build-arg version=$connector_version \
--pull \
-t $latest_tag \
--platform linux/amd64,linux/arm64 \
-t $version_tag \
--label "io.airbyte.version=$connector_version" \
--label "io.airbyte.name=$image"
docker push $latest_tag
docker push $version_tag
--label "io.airbyte.name=$image" \
--push
fi
Loading