Skip to content

Commit eaa1b2f

Browse files
committed
Update image repository
1 parent df77e76 commit eaa1b2f

File tree

10 files changed

+20
-27
lines changed

10 files changed

+20
-27
lines changed

.github/workflows/publish.yaml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
- 'v[0-9]*'
99
jobs:
1010
publish:
11-
env:
12-
IMAGE_NAME: anarchy
13-
OPERATOR_IMAGE_NAME: anarchy-operator
1411
runs-on: ubuntu-latest
1512
steps:
1613
- name: Checkout source
@@ -22,23 +19,21 @@ jobs:
2219
# Version is a semantic version tag or semantic version with release number
2320
# GITHUB_REF will be of the form "refs/tags/v0.1.2" or "refs/tags/v0.1.2-1"
2421
# To determine RELEASE, strip off the leading "refs/tags/"
25-
RELEASE=${GITHUB_REF#refs/tags/v}
22+
RELEASE=${GITHUB_REF#refs/tags/}
2623
# To determine VERSION, strip off any release number suffix
2724
VERSION=${RELEASE/-*/}
2825
29-
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
30-
3126
# Only build image if version tag without release number
3227
# Releases indicate a change in the repository that should not trigger a new build.
3328
if [[ "${VERSION}" == "${RELEASE}" ]]; then
3429
# Publish to latest, minor, and patch tags
3530
# Ex: latest,v1.2,v1.2.3
36-
echo "IMAGE_TAGS=latest v${VERSION%.*} v${VERSION}" >> $GITHUB_OUTPUT
31+
echo "IMAGE_TAGS=latest ${VERSION%.*} ${VERSION}" >> $GITHUB_OUTPUT
3732
fi
3833
3934
# Read version from helm/Chart.yaml
4035
HELM_CHART_VERSION=$(sed -nr 's/^appVersion: (.*)/\1/p' helm/Chart.yaml)
41-
if [[ "${HELM_CHART_VERSION}" != "${VERSION}" ]]; then
36+
if [[ "v${HELM_CHART_VERSION}" != "${VERSION}" ]]; then
4237
echo "Helm chart version does not match tag!"
4338
exit 1
4439
fi
@@ -48,9 +43,9 @@ jobs:
4843
if: steps.image_tags.outputs.IMAGE_TAGS
4944
uses: redhat-actions/buildah-build@v2
5045
with:
51-
image: ${{ env.IMAGE_NAME }}
46+
image: ${{ vars.IMAGE_NAME }}
5247
tags: ${{ steps.image_tags.outputs.IMAGE_TAGS }}
53-
containerfiles: Dockerfile
48+
containerfiles: Containerfile
5449

5550
- name: Push image to registry
5651
id: push-to-registry
@@ -60,13 +55,11 @@ jobs:
6055
image: ${{ steps.buildah-build.outputs.image }}
6156
tags: ${{ steps.buildah-build.outputs.tags }}
6257
registry: ${{ vars.IMAGE_REGISTRY }}/${{ vars.IMAGE_REPOSITORY }}
63-
username: ${{ secrets.REGISTRY_USERNAME }}
64-
password: ${{ secrets.REGISTRY_PASSWORD }}
58+
username: ${{ secrets.IMAGE_REGISTRY_USERNAME }}
59+
password: ${{ secrets.IMAGE_REGISTRY_PASSWORD }}
6560

6661
publish-helm-charts:
6762
needs: publish
68-
env:
69-
IMAGE_NAME: anarchy
7063
runs-on: ubuntu-latest
7164
steps:
7265
- name: Checkout Source
@@ -89,8 +82,8 @@ jobs:
8982
run: |
9083
helm dep up helm/
9184
helm package helm/
92-
mv ${{ env.IMAGE_NAME }}-*.tgz gh-pages
93-
helm repo index --url https://redhat-cop.github.io/${{ env.IMAGE_NAME }} gh-pages
85+
mv ${{ vars.IMAGE_NAME }}-*.tgz gh-pages
86+
helm repo index --url https://redhat-cop.github.io/${{ vars.IMAGE_NAME }} gh-pages
9487
9588
- name: Push Changes to GH Pages
9689
run: |

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ oc apply -f kopfpeerings.crd.yaml
5959
Clone this repo to your local workstation and change directory:
6060

6161
----
62-
git clone https://github.com/redhat-cop/anarchy.git
62+
git clone https://github.com/rhpds/anarchy.git
6363
cd anarchy
6464
----
6565

build-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88

99
parameters:
1010
- name: GIT_REPO
11-
value: https://github.com/redhat-cop/anarchy.git
11+
value: https://github.com/rhpds/anarchy.git
1212
- name: GIT_REF
1313
value: main
1414
- name: NAME

devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ components:
2727
value: "10"
2828
- name: RUNNER_TOKEN
2929
value: "development-token"
30-
image: quay.io/redhat-cop/python-kopf-s2i:v1.36
30+
image: quay.io/rhpds/python-kopf-s2i:v1.38
3131
mountSources: true
3232
sourceMapping: /tmp/projects
3333
name: s2i-builder

helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ communeOperator:
1313
memory: 128Mi
1414

1515
image:
16-
repository: quay.io/redhat-cop/anarchy
16+
repository: quay.io/rhpds/anarchy
1717
pullPolicy: IfNotPresent
1818

1919
# Deploy Anarchy, as opposed to only defining the CRDs and ClusterRoles

institutions/gitops/helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
image:
3-
repository: quay.io/redhat-cop/anarchy
3+
repository: quay.io/rhpds/anarchy
44
pullPolicy: IfNotPresent
55

66
# Deploy Anarchy, as opposed to only defining the CRDs and ClusterRoles

institutions/gitops/k8s-config/vars.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ anarchy_version: main
44
k8s_resources:
55
- name: Anarchy install
66
openshift_template:
7-
url: https://raw.githubusercontent.com/redhat-cop/anarchy/{{ anarchy_version }}/install-template.yaml
7+
url: https://raw.githubusercontent.com/rhpds/anarchy/{{ anarchy_version }}/install-template.yaml
88

99
- namespace: anarchy-k8s-config
1010
resources:
1111
- name: Anarchy k8s-config deployment
1212
helm_template:
1313
dir: "institutions/gitops/helm"
1414
git:
15-
repo: https://github.com/redhat-cop/anarchy.git
15+
repo: https://github.com/rhpds/anarchy.git
1616
version: "{{ anarchy_version }}"
1717
values:
1818
k8s_config: "{{ k8s_config }}"
@@ -36,4 +36,4 @@ k8s_resources:
3636
- name: anarchy-k8s-config
3737
base_path: institutions/gitops/k8s-config
3838
git:
39-
repo: https://github.com/redhat-cop/anarchy.git
39+
repo: https://github.com/rhpds/anarchy.git
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM registry.access.redhat.com/ubi8/python-38:latest
22

33
USER 0
44

5-
FROM quay.io/redhat-cop/python-kopf-s2i:latest
5+
FROM quay.io/rhpds/python-kopf-s2i:latest
66

77
USER root
88

test/server/build-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88

99
parameters:
1010
- name: GIT_REPO
11-
value: https://github.com/redhat-cop/anarchy.git
11+
value: https://github.com/rhpds/anarchy.git
1212

1313
objects:
1414
- apiVersion: image.openshift.io/v1

test/server/deploy-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212
- name: ANARCHY_TEST_NAMESPACE
1313
value: anarchy-operator-test
1414
- name: ANARCHY_TEST_IMAGE
15-
value: quay.io/redhat-cop/anarchy-test-server:v0.4.1
15+
value: quay.io/rhpds/anarchy-test-server:v0.4.1
1616
#value: docker-registry.default.svc:5000/anarchy-operator-test/anarchy-test-server:latest
1717
#value: image-registry.openshift-image-registry.svc:5000/anarchy-operator-test/anarchy-test-server:latest
1818
- name: ANARCHY_TEST_SERVICE_NAME

0 commit comments

Comments
 (0)