Skip to content

Commit

Permalink
Beautified example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Apr 27, 2024
1 parent 03f9192 commit 13933b8
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions bamboo-specs/example.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# This is an example Atlassian Bamboo CI configuration that demonstrates how to
# use github-actions-runner to run a GitHub Actions workflow in a Bamboo CI job.
#
# Check out .github/workflows/example.yml to see what workflow this Bamboo job
# actually runs.
#
# This example demonstrates how to:
# * Trigger a workflow run.
# * Download the artifacts produced by the workflow.
# * Pass secrets from the CI to the workflow.
---
version: 2
plan:
project-key: AJL
key: GHACTIONSRUNEXAMPLE
name: github-actions-runner - example
variables:
# TODO replace to :latest-ci
dockerNode: ghcr.io/adguardteam/githubactionsrunner:latest-no-entrypoint
# Using github-actions-runner Docker image for the latest stable version.
# latest-ci docker image does not have any entrypoint and has the
# runner installed.
dockerNode: ghcr.io/adguardteam/githubactionsrunner:latest-ci

stages:
- Test:
Expand All @@ -21,32 +33,28 @@ Test:
clean-working-dir: true
docker:
image: ${bamboo.dockerNode}
volumes:
${system.PNPM_DIR}: ${bamboo.cachePnpm}
tasks:
- checkout:
force-clean-build: true
- script:
interpreter: SHELL
scripts:
- |-
set -x
# Make sure the script fails on any error.
set -e
# Combine stderr and stdout for consistent log output
# Combine stderr and stdout for consistent log output.
exec 2>&1
ls -laht
branch="${bamboo_planRepository_branchName}"
revision="${bamboo_planRepository_revision}"
GITHUB_TOKEN=${bamboo.githubActionsRunnerPassword} github-actions-runner run-action \
--repo AdguardTeam/GithubActionsRunner \
--branch "$branch" \
--rev "$revision" \
--branch "${bamboo_planRepository_branchName}" \
--rev "${bamboo_planRepository_revision}" \
--workflow example.yml \
--artifacts-path . \
--artifacts-path .
# The artifacts produced by the workflow are downloaded and shared with the
# Bamboo CI job. These artifacts can be then shared with other unrelated
# Bamboo builds.
artifacts:
- name: github-actions-runner.tgz
pattern: github-actions-runner.tgz
Expand Down

0 comments on commit 13933b8

Please sign in to comment.