Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates github-config #21

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,27 +44,24 @@
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)
docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}"

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 "${@:-}"
Loading