From 66e1b0270a57bf1e00ab287c402e41f7a881401a Mon Sep 17 00:00:00 2001 From: initializ-bot Date: Thu, 27 Jun 2024 08:50:09 +0000 Subject: [PATCH] Updating github-config --- .github/workflows/create-release.yml | 11 ++--------- .github/workflows/push-image.yml | 7 ++----- .github/workflows/test-builder.yml | 4 +--- .github/workflows/test-pull-request.yml | 6 ++---- scripts/smoke.sh | 2 +- 5 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index cd2c586..3b4ba0e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -5,11 +5,6 @@ on: branches: - main -permissions: - id-token: write - contents: write - - concurrency: release jobs: @@ -38,10 +33,8 @@ jobs: with: pack-version: ${{ steps.pack-version.outputs.version }} - - name: Run smoke test - run: | - chmod +x ./scripts/smoke.sh - ./scripts/smoke.sh --name builder + - name: Run Smoke Tests + run: ./scripts/smoke.sh --name builder - name: Generate Release Notes id: notes diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 475c1d5..279e1ec 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -44,9 +44,8 @@ jobs: env: INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} - run: | - DOCKERHUB_ORG="initializbuildpacks" - registry_repo="securepacks" + GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} + DOCKERHUB_ORG: "initializbuildpacks" echo "${INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest" @@ -55,8 +54,6 @@ jobs: docker push "${DOCKERHUB_ORG}/${registry_repo}:latest" docker push "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" - - failure: name: Alert on Failure runs-on: ubuntu-22.04 diff --git a/.github/workflows/test-builder.yml b/.github/workflows/test-builder.yml index 799b4fe..31dfc53 100644 --- a/.github/workflows/test-builder.yml +++ b/.github/workflows/test-builder.yml @@ -18,6 +18,4 @@ jobs: uses: actions/checkout@v3 - name: Run Smoke Tests - run: | - chmod +x ./scripts/smoke.sh - ./scripts/smoke.sh --name builder + run: ./scripts/smoke.sh diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 92ef45e..079d829 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -19,10 +19,8 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Run smoke test - run: | - chmod +x ./scripts/smoke.sh - ./scripts/smoke.sh + - name: Run Smoke Tests + run: ./scripts/smoke.sh upload: name: Upload Workflow Event Payload diff --git a/scripts/smoke.sh b/scripts/smoke.sh index 7620d82..225f5c7 100644 --- a/scripts/smoke.sh +++ b/scripts/smoke.sh @@ -120,4 +120,4 @@ function tests::run() { popd > /dev/null } -main "${@:-}" \ No newline at end of file +main "${@:-}"