From e050f7f512b47708c4c0ef4f238f603c7d27f710 Mon Sep 17 00:00:00 2001 From: Ivo Clarysse Date: Tue, 31 Jan 2023 15:57:29 +0100 Subject: [PATCH] gh: Use bcdevices/pltcloud-action (#47) Use the packaged pltcloud-action, instead of a locally defined GitHub action. --- .github/actions/action-pltcloud/Dockerfile | 33 ------------------- .github/actions/action-pltcloud/entrypoint.sh | 5 --- .github/workflows/main.yml | 6 ++-- 3 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 .github/actions/action-pltcloud/Dockerfile delete mode 100755 .github/actions/action-pltcloud/entrypoint.sh diff --git a/.github/actions/action-pltcloud/Dockerfile b/.github/actions/action-pltcloud/Dockerfile deleted file mode 100644 index f5db6bc..0000000 --- a/.github/actions/action-pltcloud/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# -# Copyright (c) 2019 Blue Clover Devices -# -# SPDX-License-Identifier: Apache-2.0 -# - -FROM debian:stretch - -LABEL "com.github.actions.name"="PLTcloud publish" -LABEL "com.github.actions.description"="Publish to PLTcloud" -LABEL "com.github.actions.icon"="package" -LABEL "com.github.actions.color"="blue" - -LABEL "repository"="https://github.com/bcdevices/ly10-zephyr-fw" -LABEL "homepage"="https://github.com/bcdevices/ly10-zephyr-fw" -LABEL "maintainer"="Blue Clover Devices" - -WORKDIR /usr/src - -RUN set -xe \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - musl \ - ca-certificates \ - bash \ - wget \ - && rm -rf /var/lib/apt/lists/* - -RUN wget https://download.pltcloud.com/cli/pltcloud_0.3.0_amd64.deb -RUN dpkg -i pltcloud*_amd64.deb - -ADD entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/action-pltcloud/entrypoint.sh b/.github/actions/action-pltcloud/entrypoint.sh deleted file mode 100755 index 1260179..0000000 --- a/.github/actions/action-pltcloud/entrypoint.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -l -# SPDX-License-Identifier: Apache-2.0 - -pltcloud -t "$API_TOKEN" -f "dist/*demo*" -v "${GITHUB_REF:10}" \ - -p "$PROJECT_UUID" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9803a0..978299f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,13 @@ jobs: - name: build zepyhr uses: ./.github/actions/action-zephyr - name: PLTcloud - uses: ./.github/actions/action-pltcloud + uses: bcdevices/pltcloud-action@v1.1.3 if: contains(github.ref, 'tags') - env: + with: API_TOKEN: ${{ secrets.API_TOKEN }} PROJECT_UUID: ${{ secrets.PROJECT_UUID }} + FILES: ./dist/*demo* + VERSION: ${{ github.ref }} - name: Publish release uses: meeDamian/github-release@2.0 if: contains(github.ref, 'tags')