Skip to content
Open
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
28 changes: 28 additions & 0 deletions test_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: MQTT IO CI
on:
- push
- pull_request
- release

build_docker_image:
name: Build Docker Image
if: (github.event_name == 'release' && github.event.action == 'created') || github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- if: github.event_name == 'release' && github.event.action == 'created'
run: |
# Remove prefix release
echo "GITHUB_REF ${GITHUB_REF}"
TAG_NAME=${GITHUB_REF##*/}
# Change slashes to hyphens
TAG_NAME=${TAG_NAME//\//-}
echo "TAG_NAME ${TAG_NAME}"
#docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${TAG_NAME} -t flyte/mqtt-io:latest --push --build-arg BUILDX_QEMU_ENV=true .
- if: github.event_name == 'push'
run: |
# Remove prefix push
TAG_NAME=${GITHUB_REF:11}
# Change slashes to hyphens
TAG_NAME=${TAG_NAME//\//-}
echo "TAG_NAME ${TAG_NAME}"
#docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${TAG_NAME} --push --build-arg BUILDX_QEMU_ENV=true .