Skip to content

Commit

Permalink
Updating github-config
Browse files Browse the repository at this point in the history
  • Loading branch information
initializ-bot committed Jun 25, 2024
1 parent c22abd1 commit 84620eb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 23 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
branches:
- main

permissions:
id-token: write
contents: write


concurrency: release

jobs:
Expand Down Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 51 in .github/workflows/push-image.yml

View workflow job for this annotation

GitHub Actions / lintYaml

51:9 syntax error: could not find expected ':' (syntax)
Expand All @@ -55,16 +54,14 @@ 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
needs: [push]
if: ${{ always() && needs.push.result == 'failure' }}
steps:
- name: File Failure Alert Issue
uses: initializ-buildpacks/github-config/actions/issue/file@main
uses: INITIALIZ-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ function tests::run() {
popd > /dev/null
}

main "${@:-}"
main "${@:-}"

0 comments on commit 84620eb

Please sign in to comment.