Skip to content

Commit

Permalink
.github/workflows: use release version of catalog-cd
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jan 25, 2024
1 parent 850e685 commit 87184b9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/generate-catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: 1.20.x
cache: true
- id: set-matrix
name: Generate catalog matrix
run: |
set -Eeu
echo "matrix=$(go run github.com/openshift-pipelines/catalog-cd@main catalog externals --config ./externals.yaml)" >> "$GITHUB_OUTPUT"
echo "Installing catalog-cd 0.1.0"
curl -fsL https://github.com/openshift-pipelines/catalog-cd/releases/download/v0.1.0/catalog-cd_0.1.0_linux_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin catalog-cd
echo "matrix=$(catalog-cd catalog externals --config ./externals.yaml)" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
generate-catalog:
Expand All @@ -37,18 +36,18 @@ jobs:
matrix: ${{fromJSON(needs.catalog-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: 1.20.x
cache: true
- name: ${{ matrix.type }} catalog for ${{ matrix.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -Eeu
echo "Installing catalog-cd 0.1.0"
curl -fsL https://github.com/openshift-pipelines/catalog-cd/releases/download/v0.1.0/catalog-cd_0.1.0_linux_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin catalog-cd
mkdir -p stable/tasks stable/pipelines
cp -fRv tasks/* stable/tasks
cp -fRv pipelines/* stable/pipelines
go run github.com/openshift-pipelines/catalog-cd@main catalog generate-from \
catalog-cd catalog generate-from \
--name ${{ matrix.name }} \
--url ${{ matrix.url }} \
--type ${{ matrix.type }} \
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/generate-experimental-catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: 1.20.x
cache: true
- id: set-matrix
name: Generate catalog matrix
run: |
set -Eeu
echo "matrix=$(go run github.com/openshift-pipelines/catalog-cd@main catalog externals --config ./experimental/externals.yaml)" >> "$GITHUB_OUTPUT"
echo "Installing catalog-cd 0.1.0"
curl -fsL https://github.com/openshift-pipelines/catalog-cd/releases/download/v0.1.0/catalog-cd_0.1.0_linux_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin catalog-cd
echo "matrix=$(catalog-cd catalog externals --config ./experimental/externals.yaml)" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
generate-experimental-catalog:
Expand All @@ -37,16 +36,16 @@ jobs:
matrix: ${{fromJSON(needs.experimental-catalog-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: 1.20.x
cache: true
- name: ${{ matrix.type }} catalog for ${{ matrix.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -Eeu
echo "Installing catalog-cd 0.1.0"
curl -fsL https://github.com/openshift-pipelines/catalog-cd/releases/download/v0.1.0/catalog-cd_0.1.0_linux_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin catalog-cd
mkdir -p experimental/tasks experimental/pipelines
go run github.com/openshift-pipelines/catalog-cd@main catalog generate-from \
catalog-cd catalog generate-from \
--name ${{ matrix.name }} \
--url ${{ matrix.url }} \
--type ${{ matrix.type }} \
Expand Down

0 comments on commit 87184b9

Please sign in to comment.