Skip to content

build: bump com.google.cloud.tools.jib from 3.4.0 to 3.4.1 (#159) #80

build: bump com.google.cloud.tools.jib from 3.4.0 to 3.4.1 (#159)

build: bump com.google.cloud.tools.jib from 3.4.0 to 3.4.1 (#159) #80

Workflow file for this run

---
name: snapshot
on:
push:
branches:
- "main"
workflow_dispatch:
inputs:
dry_run:
description: If set, run a dry-run snapshot
default: false
type: boolean
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
outputs:
is-snapshot: ${{ steps.validate.outputs.is-snapshot }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate version is a snapshot version
run: |
output=false
if [[ "$(./gradlew -q currentVersion)" =~ "-SNAPSHOT" ]]; then
echo "This is a snapshot version"
output=true
fi
echo "is-snapshot=${output}" >> "${GITHUB_OUTPUT}"
deploy:
name: Deploy
runs-on: ubuntu-latest
needs:
- validate
if: ${{ contains(needs.validate.outputs.is-snapshot, 'true') }}
steps:
- id: buildkite
name: Run Deploy
uses: elastic/apm-pipeline-library/.github/actions/buildkite@current
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: elastic-otel-java-snapshot
waitFor: false
printBuildLogs: false
buildEnvVars: |
dry_run=${{ inputs.dry_run || 'false' }}
- if: ${{ failure() }}
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
with:
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
channel: "#apm-agent-java"
message: |
:ghost: [${{ github.repository }}] Snapshot *${{ github.ref_name }}* didn't get triggered in Buildkite.
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)