Skip to content
Merged
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
13 changes: 5 additions & 8 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
release_notes: ${{ steps.notes.outputs.body }}
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'

Expand Down Expand Up @@ -61,20 +61,17 @@ jobs:
- name: Compare With Previous Release
id: compare_previous_release
run: |
if git show-ref --tags > /dev/null; then
if [ -z "$(git diff "$(git describe --tags --abbrev=0 2>/dev/null)" -- builder-buildpackless.toml)" ]; then
echo "builder_changes=false" >> "$GITHUB_OUTPUT"
else
echo "builder_changes=true" >> "$GITHUB_OUTPUT"
fi
if [ -z "$(git diff $(git describe --tags --abbrev=0) -- builder.toml)" ]
then
echo "builder_changes=false" >> "$GITHUB_OUTPUT"
else
echo "builder_changes=true" >> "$GITHUB_OUTPUT"
fi

- name: Publish Release
id: publish
if: ${{ steps.compare_previous_release.outputs.builder_changes == 'true' }}
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-config.yml
publish: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
path: github-config

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> "$GITHUB_OUTPUT"

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get pack version
id: pack-version
Expand All @@ -36,20 +36,27 @@ jobs:
pack config experimental true
fi

- name: Create Builder Image and Push To Dockerhub
- name: Create Builder Image
run: |
pack builder create builder --config builder.toml

- name: Push To Dockerhub
env:
PAKETO_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }}
PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
run: |
DOCKERHUB_ORG="${GITHUB_REPOSITORY_OWNER/-/}" # translates 'paketo-buildpacks' to 'paketobuildpacks'
registry_repo=ubi-9-buildpackless-builder
# Strip off the Github org prefix from repo name
# paketo-buildpacks/builder-with-some-name --> builder-with-some-name
registry_repo=$(echo "${{ github.repository }}" | sed 's/^.*\///')

echo "${PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${PAKETO_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin
# In order to publish multi-arch builders with pack, the builder MUST be published.
# It cannot be created locally and then pushed
pack builder create "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" --config builder-buildpackless.toml --publish
pack builder create "${DOCKERHUB_ORG}/${registry_repo}:latest" --config builder-buildpackless.toml --publish
docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest"
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/update-builder-toml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout branch
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
Expand All @@ -24,14 +24,13 @@ jobs:
uses: paketo-buildpacks/github-config/actions/builder/update@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
filename: "builder-buildpackless.toml"

- name: Git commit
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Update builder.toml"
pathspec: "builder-buildpackless.toml"
pathspec: "builder.toml"
keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }}
key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }}

Expand Down
Loading