Skip to content

Move operator to a separate deployment to run without promxy secret #2

Move operator to a separate deployment to run without promxy secret

Move operator to a separate deployment to run without promxy secret #2

Workflow file for this run

name: promxy-operator-build
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
branches:
- main
- release-*
paths:
- "promxy-operator/**"
- "!**.md"
env:
GO_VERSION: "1.22"
jobs:
build:
concurrency:
group: build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: Build and Unit Test
runs-on: ubuntu-latest
outputs:
version: ${{ steps.vars.outputs.version }}
pr: ${{ steps.pr.outputs.result }}
permissions:
packages: write
steps:
- name: Get PR ref
uses: actions/github-script@v7
id: pr
with:
script: |
const { data: pullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.payload.pull_request.number,
});
return pullRequest
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{fromJSON(steps.pr.outputs.result).merge_commit_sha}}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Unit tests
working-directory: ./promxy-operator
run: |
make test