Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Created December 14, 2024 00:33
Show Gist options
  • Save nickboldt/e024a2e209e0460bdd918f7dd19b049c to your computer and use it in GitHub Desktop.
Save nickboldt/e024a2e209e0460bdd918f7dd19b049c to your computer and use it in GitHub Desktop.
manual snapshot and release
#!/bin/bash
echo "apiVersion: appstudio.redhat.com/v1alpha1
kind: Snapshot
metadata:
name: rhdh-1-4-rc-12-13
namespace: rhdh-tenant
labels:
test.appstudio.openshift.io/type: override
spec:
application: rhdh-1-4
components:
- name: rhdh-hub
containerImage: quay.io/rhdh/rhdh-hub-rhel9@sha256:48edcf6f736e17f33d3630ce2fddc19e95316b7824a7af24e9f0df48ac4f4fe3
source:
git:
context: distgit/containers/rhdh-hub
dockerfileUrl: Containerfile
url: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1.4-rhel-9
revision: 94777e04228bcb50ba8b93bf192c9e14c940d3f9
- name: rhdh-operator
containerImage: quay.io/rhdh/rhdh-rhel9-operator@sha256:448fba0f5f87dc6508b96503fbb794b5b67ed4dea3c95f42d5accdfe1c77e721
source:
git:
context: distgit/containers/rhdh-operator
dockerfileUrl: Containerfile
url: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1.4-rhel-9
revision: 94777e04228bcb50ba8b93bf192c9e14c940d3f9
- name: rhdh-operator-bundle
containerImage: quay.io/rhdh/rhdh-operator-bundle@sha256:2981d2470951ea1e26eb968aefc39ab48ab7d9634a520cf2bbd8c5fef313db15
source:
git:
context: distgit/containers/rhdh-operator-bundle
dockerfileUrl: Containerfile
url: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1.4-rhel-9
revision: 94777e04228bcb50ba8b93bf192c9e14c940d3f9
" | oc apply -f -
echo "apiVersion: appstudio.redhat.com/v1alpha1
kind: Release
metadata:
name: manual-release-rhdh-1-4-stage-2
namespace: rhdh-tenant
labels:
release.appstudio.openshift.io/author: 'nboldt'
spec:
releasePlan: rhdh-1-4-stage
snapshot: rhdh-1-4-rc-12-13
" | oc apply -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment