-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated commit to update templated files based on rev f9c2c5b in st…
…ackabletech/operator-templating repo. Triggered by: Manual run triggered by: dervoeti with message [New Harbor project names / Dependency updates]
- Loading branch information
1 parent
9e719ae
commit ac1db7b
Showing
3 changed files
with
65 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,18 +37,19 @@ jobs: | |
RUSTC_BOOTSTRAP: 1 | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: udeps | ||
cache-all-crates: "true" | ||
- run: cargo install --locked cargo-udeps@0.1.39 | ||
- uses: stackabletech/cargo-install-action@cargo-udeps | ||
- run: cargo udeps --workspace | ||
|
||
# This job evaluates the github environment to determine why this action is running and selects the appropriate | ||
|
@@ -110,7 +111,7 @@ jobs: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: EmbarkStudios/cargo-deny-action@a50c7d5f86370e02fae8472c398f15a36e517bb8 # v1.5.4 | ||
- uses: EmbarkStudios/cargo-deny-action@1e59595bed8fc55c969333d08d7817b36888f0c5 # v1.5.5 | ||
with: | ||
command: check ${{ matrix.checks }} | ||
|
||
|
@@ -131,16 +132,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: clippy | ||
cache-all-crates: "true" | ||
|
@@ -164,16 +166,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
with: | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: doc | ||
cache-all-crates: "true" | ||
|
@@ -184,14 +188,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: test | ||
cache-all-crates: "true" | ||
|
@@ -209,7 +214,7 @@ jobs: | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 | ||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # tag=v5.0.0 | ||
with: | ||
python-version: '3.11' | ||
- name: Install jinja2-cli | ||
|
@@ -220,7 +225,7 @@ jobs: | |
run: git diff --exit-code | ||
- name: Git Diff showed uncommitted changes | ||
if: ${{ failure() }} | ||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
with: | ||
script: | | ||
core.setFailed('Committed README are not up to date, please make sure to apply them to the templated partials, and re-commit!') | ||
|
@@ -240,21 +245,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: recursive | ||
- name: Set up Helm | ||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | ||
with: | ||
version: v3.6.2 | ||
version: v3.13.3 | ||
- name: Set up cargo | ||
uses: dtolnay/[email protected] | ||
- name: Set up rust-cache | ||
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | ||
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
key: charts | ||
cache-all-crates: "true" | ||
|
@@ -264,7 +269,7 @@ jobs: | |
run: git diff --exit-code | ||
- name: Git Diff showed uncommitted changes | ||
if: ${{ failure() }} | ||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
with: | ||
script: | | ||
core.setFailed('Committed charts were not up to date, please regenerate and re-commit!') | ||
|
@@ -296,16 +301,19 @@ jobs: | |
env: | ||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
HELM_REPO: ${{ needs.select_helm_repo.outputs.helm_repository }} | ||
OCI_REGISTRY_PASSWORD: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }} | ||
OCI_REGISTRY_USERNAME: "robot$stackable+github-action-build" | ||
OCI_REGISTRY_SDP_PASSWORD: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} | ||
OCI_REGISTRY_SDP_USERNAME: "robot$sdp+github-action-build" | ||
OCI_REGISTRY_SDP_CHARTS_PASSWORD: ${{ secrets.HARBOR_ROBOT_SDP_CHARTS_GITHUB_ACTION_BUILD_SECRET }} | ||
OCI_REGISTRY_SDP_CHARTS_USERNAME: "robot$sdp-charts+github-action-build" | ||
if: needs.select_helm_repo.outputs.helm_repository != 'skip' | ||
outputs: | ||
IMAGE_TAG: ${{ steps.printtag.outputs.IMAGE_TAG }} | ||
steps: | ||
- name: Install host dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
uses: awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1 | ||
with: | ||
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
version: 1.0 | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
|
@@ -316,23 +324,25 @@ jobs: | |
# This step checks if the current run was triggered by a push to a pr (or a pr being created). | ||
# If this is the case it changes the version of this project in all Cargo.toml files to include the suffix | ||
# "-pr<prnumber>" so that the published artifacts can be linked to this PR. | ||
- uses: stackabletech/cargo-install-action@main | ||
with: | ||
crate: cargo-edit | ||
bin: cargo-set-version | ||
- name: Update version if PR | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
cargo install cargo-edit --version 0.11.11 | ||
cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }} | ||
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }} | ||
|
||
# Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the | ||
# default value in the makefile if called from this action, but not otherwise (i.e. when called locally). | ||
# This is needed for the HELM_REPO variable. | ||
- name: Set up Cosign | ||
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3 | ||
- uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0 | ||
- name: Publish Docker image and Helm chart | ||
run: make -e publish | ||
# Output the name of the published image to the Job output for later use | ||
- id: printtag | ||
name: Output image name and tag | ||
run: echo "IMAGE_TAG=$(make -e print-docker-tag)" >> $GITHUB_OUTPUT | ||
|
||
openshift_preflight: | ||
name: Run the OpenShift Preflight check on the published images | ||
needs: | ||
|
@@ -343,7 +353,7 @@ jobs: | |
steps: | ||
- name: Install preflight | ||
run: | | ||
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.6.11/preflight-linux-amd64 | ||
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.7.2/preflight-linux-amd64 | ||
chmod +x preflight-linux-amd64 | ||
- name: Check container | ||
run: ./preflight-linux-amd64 check container "$IMAGE_TAG" > preflight.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters