Skip to content

Commit

Permalink
Merge pull request #61 from paketo-buildpacks/update/pipeline
Browse files Browse the repository at this point in the history
Bump pipeline from 1.19.0 to 1.20.0
  • Loading branch information
Daniel Mikusa authored Mar 10, 2022
2 parents a3469ba + f836fb3 commit 4701fba
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/pipeline-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.0
1.20.0
21 changes: 8 additions & 13 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
mkdir -p "${HOME}"/.pack
echo "experimental = true" >> "${HOME}"/.pack/config.toml
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- if: ${{ false }}
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -147,34 +147,29 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
- name: Package Buildpack
id: package
run: |+
run: |
#!/usr/bin/env bash
set -euo pipefail
REPOSITORY="${GITHUB_REPOSITORY_OWNER/-/}/${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" # translates 'paketo-buildpacks/buildpack' to 'paketobuildpacks/buildpack'
IMAGE="index.docker.io/${REPOSITORY}"
if [[ "${PUBLISH:-x}" == "true" ]]; then
pack buildpack package \
"${IMAGE}:${VERSION}" \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--publish
if [[ -n ${VERSION_MINOR:-} && -n ${VERSION_MAJOR:-} ]]; then
crane tag "${IMAGE}:${VERSION}" "${VERSION_MINOR}"
crane tag "${IMAGE}:${VERSION}" "${VERSION_MAJOR}"
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MINOR}"
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MAJOR}"
fi
crane tag "${IMAGE}:${VERSION}" latest
crane copy "${IMAGE}:${VERSION}" "gcr.io/${{ github.repository }}:${VERSION}"
echo "::set-output name=digest::$(crane digest "${IMAGE}:${VERSION}")"
crane tag "${PACKAGE}:${VERSION}" latest
echo "::set-output name=digest::$(crane digest "${PACKAGE}:${VERSION}")"
else
pack buildpack package \
"${IMAGE}:${VERSION}" \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--format "${FORMAT}"
fi
env:
PACKAGE: gcr.io/paketo-buildpacks/pipeline-builder-canary
PUBLISH: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/synchronize-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.JAVA_GITHUB_TOKEN }}
23 changes: 9 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
mkdir -p "${HOME}"/.pack
echo "experimental = true" >> "${HOME}"/.pack/config.toml
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/buildpack.toml', '**/package.toml') }}
Expand Down Expand Up @@ -112,34 +112,29 @@ jobs:
OS: linux
VERSION: ${{ steps.version.outputs.version }}
- name: Package Buildpack
run: |+
run: |
#!/usr/bin/env bash
set -euo pipefail
REPOSITORY="${GITHUB_REPOSITORY_OWNER/-/}/${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" # translates 'paketo-buildpacks/buildpack' to 'paketobuildpacks/buildpack'
IMAGE="index.docker.io/${REPOSITORY}"
if [[ "${PUBLISH:-x}" == "true" ]]; then
pack buildpack package \
"${IMAGE}:${VERSION}" \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--publish
if [[ -n ${VERSION_MINOR:-} && -n ${VERSION_MAJOR:-} ]]; then
crane tag "${IMAGE}:${VERSION}" "${VERSION_MINOR}"
crane tag "${IMAGE}:${VERSION}" "${VERSION_MAJOR}"
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MINOR}"
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MAJOR}"
fi
crane tag "${IMAGE}:${VERSION}" latest
crane copy "${IMAGE}:${VERSION}" "gcr.io/${{ github.repository }}:${VERSION}"
echo "::set-output name=digest::$(crane digest "${IMAGE}:${VERSION}")"
crane tag "${PACKAGE}:${VERSION}" latest
echo "::set-output name=digest::$(crane digest "${PACKAGE}:${VERSION}")"
else
pack buildpack package \
"${IMAGE}:${VERSION}" \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--format "${FORMAT}"
fi
env:
FORMAT: image
PACKAGE: test
Expand All @@ -149,7 +144,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
chmod +x "${HOME}"/bin/yj
env:
YJ_VERSION: 5.0.0
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Update draft release with buildpack information
run: |
#!/usr/bin/env bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
chmod +x "${HOME}"/bin/yj
env:
YJ_VERSION: 5.0.0
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- id: dependency
uses: docker://ghcr.io/paketo-buildpacks/actions/maven-dependency:main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
set -euo pipefail
GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Update Pipeline
id: pipeline
run: |
Expand Down

0 comments on commit 4701fba

Please sign in to comment.