Skip to content

Commit

Permalink
testing forks
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
  • Loading branch information
NiccoloFei committed Feb 24, 2025
1 parent 67a7a75 commit 9e57fca
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Container Images from PostgreSQL sources

on:
pull_request:
workflow_dispatch:
inputs:
pg_repo:
Expand Down Expand Up @@ -28,6 +29,44 @@ defaults:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:
test-forks:
name: test-forks
runs-on: ubuntu-24.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Git
run: |
image_tag=$( (git symbolic-ref -q --short HEAD || git describe --tags --exact-match) | tr / -)
echo $image_tag
test-slash:
name: test-slash
runs-on: ubuntu-24.04
steps:
- name: Resolve Git reference
uses: xt0rted/pull-request-comment-branch@v3
id: refs

- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ steps.refs.outputs.head_sha }}
fetch-depth: 0

- name: Git
run: |
image_tag=$( (git symbolic-ref -q --short HEAD || git describe --tags --exact-match) | tr / -)
echo $image_tag
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"

build-pg:
name: Build generic PostgreSQL image from sources
runs-on: ubuntu-24.04
Expand Down

0 comments on commit 9e57fca

Please sign in to comment.