diff --git a/.github/workflows/deploy-balena.yaml b/.github/workflows/deploy-balena.yaml deleted file mode 100644 index c6727896..00000000 --- a/.github/workflows/deploy-balena.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: Setup and Deploy to Balena Fleet - -on: - workflow_call: - inputs: - FLEET_NAME: - required: true - type: string - secrets: - BALENA_AUTH_TOKEN: - required: true - -jobs: - setup-and-deploy: - runs-on: ubuntu-22.04 - environment: ${{ inputs.FLEET_NAME }} - outputs: - cli-path: ${{ steps.setup_cli.outputs.cli-path }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install Balena CLI - id: setup_cli - run: | - set -ex - sudo apt-get update && sudo apt-get -y install curl unzip - curl -L -o balena-cli.zip "https://github.com/balena-io/balena-cli/releases/download/v18.0.0/balena-cli-v18.0.0-linux-x64-standalone.zip" - unzip balena-cli.zip -d $HOME/balena-cli - BALENA_CLI_PATH=$(find $HOME/balena-cli -name 'balena' -type f -executable | head -n 1) - if [[ ! -z "$BALENA_CLI_PATH" ]]; then - chmod +x "$BALENA_CLI_PATH" - echo "$(dirname $BALENA_CLI_PATH)" >> $GITHUB_PATH - echo "::set-output name=cli-path::$(dirname $BALENA_CLI_PATH)" - else - echo "Balena CLI executable not found" - exit 1 - fi - shell: bash - - - name: Check Balena CLI version - run: balena --version - - name: Login and Push to Fleet - run: | - balena login --token ${{ secrets.BALENA_AUTH_TOKEN }} - balena push edge-${{ inputs.FLEET_NAME }} \ No newline at end of file diff --git a/.github/workflows/deploy-glhub.yaml b/.github/workflows/deploy-glhub.yaml new file mode 100644 index 00000000..7a20171b --- /dev/null +++ b/.github/workflows/deploy-glhub.yaml @@ -0,0 +1,22 @@ +name: Update edge endpoint submodule in the glhub repo +# The edge endpoint is a submodule in the glhub repo. On any PR commit, +# we want to update that submodule. +on: + pull_request: + branches: + - main +jobs: + update-edge-endpoint-submodule-in-glhub: + runs-on: ubuntu-latest + + steps: + - name: Checkout glhub + uses: actions/checkout@v3 + with: + repository: groundlight/glhub + path: /glhub + + - name: list directory + run: | + cd /glhub + ls \ No newline at end of file