From fe1137f10dad258611d136cad7815b21e39692a5 Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Thu, 29 Feb 2024 19:33:18 +1100 Subject: [PATCH] fix(cicd): fix file names and environment to sfp --- .github/workflows/release.yml | 30 +++++++++---------- ...-build-docker.yml => sfp-build-docker.yml} | 0 ...ts-copy-docker.yml => sfp-copy-docker.yml} | 2 +- ...mote-docker.yml => sfp-promote-docker.yml} | 0 4 files changed, 16 insertions(+), 16 deletions(-) rename .github/workflows/{sfpowerscripts-build-docker.yml => sfp-build-docker.yml} (100%) rename .github/workflows/{sfpowerscripts-copy-docker.yml => sfp-copy-docker.yml} (99%) rename .github/workflows/{sfpowerscripts-promote-docker.yml => sfp-promote-docker.yml} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b08709791..810824ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: # On successfull creation of packages,(or even if lerna skips), create docker image build-docker: name: 'build docker image' - uses: ./.github/workflows/sfpowerscripts-build-docker.yml + uses: ./.github/workflows/sfp-build-docker.yml with: job-environment: 'build-docker' suffix-tag: ${{ github.run_id }} @@ -56,7 +56,7 @@ jobs: build-docker-lite: name: 'build sfp lite docker image' - uses: ./.github/workflows/sfpowerscripts-build-docker.yml + uses: ./.github/workflows/sfp-build-docker.yml with: job-environment: 'build-docker' suffix-tag: ${{ github.run_id }} @@ -78,16 +78,16 @@ jobs: with: version: 'alpha' pathToPackageJson: 'packages/sfp-cli/package.json' - environment: sfpowerscripts-alpha + environment: sfp-alpha secrets: npm-token: ${{ secrets.NPM_TOKEN }} needs: [ build ] alpha-docker: name: 'promote docker to alpha' - uses: ./.github/workflows/sfpowerscripts-promote-docker.yml + uses: ./.github/workflows/sfp-promote-docker.yml with: - job-environment: 'sfpowerscripts-alpha-docker' + job-environment: 'sfp-alpha-docker' repo: 'flxbl-io' new-tag: alpha image: 'sfp-rc' @@ -98,9 +98,9 @@ jobs: alpha-docker-lite: name: 'promote docker lite to alpha' - uses: ./.github/workflows/sfpowerscripts-promote-docker.yml + uses: ./.github/workflows/sfp-promote-docker.yml with: - job-environment: 'sfpowerscripts-alpha-docker' + job-environment: 'sfp-alpha-docker' repo: 'flxbl-io' new-tag: alpha image: 'sfp-lite-rc' @@ -123,7 +123,7 @@ jobs: beta-docker: name: 'promote docker to beta' - uses: ./.github/workflows/sfpowerscripts-promote-docker.yml + uses: ./.github/workflows/sfp-promote-docker.yml with: job-environment: 'sfpowerscripts-beta-docker' repo: 'flxbl-io' @@ -136,9 +136,9 @@ jobs: beta-docker-lite: name: 'promote docker light to beta' - uses: ./.github/workflows/sfpowerscripts-promote-docker.yml + uses: ./.github/workflows/sfp-promote-docker.yml with: - job-environment: 'sfpowerscripts-beta-docker' + job-environment: 'sfp-beta-docker' repo: 'flxbl-io' new-tag: beta image: 'sfp-rc' @@ -156,16 +156,16 @@ jobs: with: version: 'latest' pathToPackageJson: 'packages/sfp-cli/package.json' - environment: sfpowerscripts-prod + environment: sfp-prod secrets: npm-token: ${{ secrets.NPM_TOKEN }} needs: [ build ] prod-docker: name: 'copy rc docker to prod' - uses: ./.github/workflows/sfpowerscripts-copy-docker.yml + uses: ./.github/workflows/sfp-copy-docker.yml with: - job-environment: 'sfpowerscripts-prod-docker' + job-environment: 'sfp-prod-docker' secrets: username: ${{ secrets.DOCKER_USERNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -175,9 +175,9 @@ jobs: prod-docker-lite: name: 'copy rc lite docker to prod' - uses: ./.github/workflows/sfpowerscripts-copy-docker.yml + uses: ./.github/workflows/sfp-copy-docker.yml with: - job-environment: 'sfpowerscripts-prod-docker' + job-environment: 'sfp-prod-docker' image: sfp-lite-rc image-as: sfp-lite secrets: diff --git a/.github/workflows/sfpowerscripts-build-docker.yml b/.github/workflows/sfp-build-docker.yml similarity index 100% rename from .github/workflows/sfpowerscripts-build-docker.yml rename to .github/workflows/sfp-build-docker.yml diff --git a/.github/workflows/sfpowerscripts-copy-docker.yml b/.github/workflows/sfp-copy-docker.yml similarity index 99% rename from .github/workflows/sfpowerscripts-copy-docker.yml rename to .github/workflows/sfp-copy-docker.yml index 36ce74117..3f73e22cb 100644 --- a/.github/workflows/sfpowerscripts-copy-docker.yml +++ b/.github/workflows/sfp-copy-docker.yml @@ -18,7 +18,7 @@ on: image-as: type: string required: false - default: sfpowerscripts + default: sfp secrets: username: required: true diff --git a/.github/workflows/sfpowerscripts-promote-docker.yml b/.github/workflows/sfp-promote-docker.yml similarity index 100% rename from .github/workflows/sfpowerscripts-promote-docker.yml rename to .github/workflows/sfp-promote-docker.yml