Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Create proxy.yml

Michał Rutkaf02435c0b6fb
diff --git a/.github/workflows/proxy.yml b/.github/workflows/proxy.yml
new file mode 100644
index 000000000..fc72155b5
--- /dev/null
+++ b/.github/workflows/proxy.yml
@@ -0,0 +1,41 @@
+# This is a basic workflow to help you get started with Actions
+
+name: build multirach proxy Docker image and push to it dockerhub
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the master branch
+ push:
+ branches: [ master ]
+ paths:
+ - proxy/**
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+env:
+ PLATFORM: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ image_proxy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: set up QEMU
+ uses: docker/setup-qemu-action@v1
+ with:
+ platforms: all
+ - name: install buildx
+ id: buildx
+ uses: docker/setup-buildx-action@v1
+ with:
+ version: latest
+ install: true
+ - name: available platforms
+ run: echo ${{ steps.buildx.outputs.platforms }}
+ - name: login to docker hub
+ run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin
+ - name: build and push images
+ run: |
+ docker build --push --platform $PLATFORM -t openremote/proxy:latest proxy