From 362a92d82ffbdc0bffd4299c54a8982b461c5c05 Mon Sep 17 00:00:00 2001 From: Kevin Reynolds Date: Wed, 10 Apr 2024 15:31:51 -0400 Subject: [PATCH] rename installer for future other installers --- .github/workflows/publish.yml.old | 34 ------------------- README.md | 2 +- app/app.py | 2 +- ...f-install.sh => orijen-udf-base-install.sh | 0 4 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/publish.yml.old rename orijen-udf-install.sh => orijen-udf-base-install.sh (100%) diff --git a/.github/workflows/publish.yml.old b/.github/workflows/publish.yml.old deleted file mode 100644 index 88d2871..0000000 --- a/.github/workflows/publish.yml.old +++ /dev/null @@ -1,34 +0,0 @@ -name: Create and publish a Docker image -on: - push: - branches: ['main'] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} -jobs: - build-and-push-image: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/README.md b/README.md index aac13ad..2981f62 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Run with ``sudo``. Once you've inspected [the installer](./orijen-udf-install.sh) and the contents of [the container](./app/app.py) you can run the installer directly. ```shell - sudo curl -s https://raw.githubusercontent.com/f5devcentral/orijen-udf-service/main/orijen-udf-install.sh | bash + sudo curl -s https://raw.githubusercontent.com/f5devcentral/orijen-udf-service/main/orijen-udf-base-install.sh | bash ``` ## UDF Deployment Tags Needed diff --git a/app/app.py b/app/app.py index df5763a..8ad5dc9 100644 --- a/app/app.py +++ b/app/app.py @@ -80,7 +80,7 @@ def query_metadata(metadata_base_url: str) -> dict|None: deployer = deployment.get("deployment")["deployer"] lab_id = deployment_tags.get("LabID") sqs_url = deployment_tags.get("SQS") - + return { "depID": dep_id, "deployer": deployer, diff --git a/orijen-udf-install.sh b/orijen-udf-base-install.sh similarity index 100% rename from orijen-udf-install.sh rename to orijen-udf-base-install.sh