From 3c2329e9ea06196d5b5be467e9da3057eac7f4cd Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 23 Sep 2021 16:00:11 +0000 Subject: [PATCH] Bump pipeline from 1.10.5 to 1.10.5 Bumps pipeline from 1.10.5 to 1.10.5. Signed-off-by: GitHub --- ...create-action-cf-java-index-dependency.yml | 75 +++++++++++++++++++ .../create-action-paketo-deps-dependency.yml | 75 +++++++++++++++++++ .../create-action-rustup-init-dependency.yml | 75 +++++++++++++++++++ 3 files changed, 225 insertions(+) create mode 100644 .github/workflows/create-action-cf-java-index-dependency.yml create mode 100644 .github/workflows/create-action-paketo-deps-dependency.yml create mode 100644 .github/workflows/create-action-rustup-init-dependency.yml diff --git a/.github/workflows/create-action-cf-java-index-dependency.yml b/.github/workflows/create-action-cf-java-index-dependency.yml new file mode 100644 index 00000000..ae5ecc1f --- /dev/null +++ b/.github/workflows/create-action-cf-java-index-dependency.yml @@ -0,0 +1,75 @@ +name: Create Action cf-java-index-dependency +"on": + pull_request: + paths: + - actions/* + - actions/cf-java-index-dependency/* + push: + branches: + - main + paths: + - actions/* + - actions/cf-java-index-dependency/* + release: + types: + - published +jobs: + create-action: + name: Create Action + runs-on: + - ubuntu-latest + steps: + - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} + name: Docker login ghcr.io + uses: docker/login-action@v1 + with: + password: ${{ secrets.JAVA_GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ secrets.JAVA_GITHUB_USERNAME }} + - uses: actions/checkout@v2 + - id: version + name: Compute Version + run: | + #!/usr/bin/env bash + + set -euo pipefail + + if [[ ${GITHUB_REF} =~ refs/tags/v([0-9]+\.[0-9]+\.[0-9]+) ]]; then + VERSION=${BASH_REMATCH[1]} + elif [[ ${GITHUB_REF} =~ refs/heads/(.+) ]]; then + VERSION=${BASH_REMATCH[1]} + else + VERSION=$(git rev-parse --short HEAD) + fi + + echo "::set-output name=version::${VERSION}" + echo "Selected ${VERSION} from + * ref: ${GITHUB_REF} + * sha: ${GITHUB_SHA} + " + - name: Create Action + run: | + #!/usr/bin/env bash + + set -euo pipefail + + echo "::group::Building ${TARGET}:${VERSION}" + docker build \ + --file actions/Dockerfile \ + --build-arg "SOURCE=${SOURCE}" \ + --tag "${TARGET}:${VERSION}" \ + . + echo "::endgroup::" + + if [[ "${PUSH}" == "true" ]]; then + echo "::group::Pushing ${TARGET}:${VERSION}" + docker push "${TARGET}:${VERSION}" + echo "::endgroup::" + else + echo "Skipping push" + fi + env: + PUSH: ${{ github.event_name != 'pull_request' }} + SOURCE: cf-java-index-dependency + TARGET: ghcr.io/paketo-buildpacks/actions/cf-java-index-dependency + VERSION: ${{ steps.version.outputs.version }} diff --git a/.github/workflows/create-action-paketo-deps-dependency.yml b/.github/workflows/create-action-paketo-deps-dependency.yml new file mode 100644 index 00000000..051ec0e7 --- /dev/null +++ b/.github/workflows/create-action-paketo-deps-dependency.yml @@ -0,0 +1,75 @@ +name: Create Action paketo-deps-dependency +"on": + pull_request: + paths: + - actions/* + - actions/paketo-deps-dependency/* + push: + branches: + - main + paths: + - actions/* + - actions/paketo-deps-dependency/* + release: + types: + - published +jobs: + create-action: + name: Create Action + runs-on: + - ubuntu-latest + steps: + - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} + name: Docker login ghcr.io + uses: docker/login-action@v1 + with: + password: ${{ secrets.JAVA_GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ secrets.JAVA_GITHUB_USERNAME }} + - uses: actions/checkout@v2 + - id: version + name: Compute Version + run: | + #!/usr/bin/env bash + + set -euo pipefail + + if [[ ${GITHUB_REF} =~ refs/tags/v([0-9]+\.[0-9]+\.[0-9]+) ]]; then + VERSION=${BASH_REMATCH[1]} + elif [[ ${GITHUB_REF} =~ refs/heads/(.+) ]]; then + VERSION=${BASH_REMATCH[1]} + else + VERSION=$(git rev-parse --short HEAD) + fi + + echo "::set-output name=version::${VERSION}" + echo "Selected ${VERSION} from + * ref: ${GITHUB_REF} + * sha: ${GITHUB_SHA} + " + - name: Create Action + run: | + #!/usr/bin/env bash + + set -euo pipefail + + echo "::group::Building ${TARGET}:${VERSION}" + docker build \ + --file actions/Dockerfile \ + --build-arg "SOURCE=${SOURCE}" \ + --tag "${TARGET}:${VERSION}" \ + . + echo "::endgroup::" + + if [[ "${PUSH}" == "true" ]]; then + echo "::group::Pushing ${TARGET}:${VERSION}" + docker push "${TARGET}:${VERSION}" + echo "::endgroup::" + else + echo "Skipping push" + fi + env: + PUSH: ${{ github.event_name != 'pull_request' }} + SOURCE: paketo-deps-dependency + TARGET: ghcr.io/paketo-buildpacks/actions/paketo-deps-dependency + VERSION: ${{ steps.version.outputs.version }} diff --git a/.github/workflows/create-action-rustup-init-dependency.yml b/.github/workflows/create-action-rustup-init-dependency.yml new file mode 100644 index 00000000..d9213383 --- /dev/null +++ b/.github/workflows/create-action-rustup-init-dependency.yml @@ -0,0 +1,75 @@ +name: Create Action rustup-init-dependency +"on": + pull_request: + paths: + - actions/* + - actions/rustup-init-dependency/* + push: + branches: + - main + paths: + - actions/* + - actions/rustup-init-dependency/* + release: + types: + - published +jobs: + create-action: + name: Create Action + runs-on: + - ubuntu-latest + steps: + - if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} + name: Docker login ghcr.io + uses: docker/login-action@v1 + with: + password: ${{ secrets.JAVA_GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ secrets.JAVA_GITHUB_USERNAME }} + - uses: actions/checkout@v2 + - id: version + name: Compute Version + run: | + #!/usr/bin/env bash + + set -euo pipefail + + if [[ ${GITHUB_REF} =~ refs/tags/v([0-9]+\.[0-9]+\.[0-9]+) ]]; then + VERSION=${BASH_REMATCH[1]} + elif [[ ${GITHUB_REF} =~ refs/heads/(.+) ]]; then + VERSION=${BASH_REMATCH[1]} + else + VERSION=$(git rev-parse --short HEAD) + fi + + echo "::set-output name=version::${VERSION}" + echo "Selected ${VERSION} from + * ref: ${GITHUB_REF} + * sha: ${GITHUB_SHA} + " + - name: Create Action + run: | + #!/usr/bin/env bash + + set -euo pipefail + + echo "::group::Building ${TARGET}:${VERSION}" + docker build \ + --file actions/Dockerfile \ + --build-arg "SOURCE=${SOURCE}" \ + --tag "${TARGET}:${VERSION}" \ + . + echo "::endgroup::" + + if [[ "${PUSH}" == "true" ]]; then + echo "::group::Pushing ${TARGET}:${VERSION}" + docker push "${TARGET}:${VERSION}" + echo "::endgroup::" + else + echo "Skipping push" + fi + env: + PUSH: ${{ github.event_name != 'pull_request' }} + SOURCE: rustup-init-dependency + TARGET: ghcr.io/paketo-buildpacks/actions/rustup-dependency + VERSION: ${{ steps.version.outputs.version }}