Skip to content

Commit

Permalink
enforce snippet config and test new action
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 18, 2023
1 parent eb03223 commit 965d450
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/helm-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@OPSEXP-2242-kindaction
with:
nginx-ingress-ref: controller-v1.8.2

- name: Create registries auth secret
if: ${{ ! github.event.repository.fork }}
run: |
kubectl -n ingress-nginx patch cm ingress-nginx-controller \
-p '{"data": {"allow-snippet-annotations":"true"}}'
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/helm-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ jobs:
password: ${{ secrets.QUAY_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@OPSEXP-2242-kindaction
with:
nginx-ingress-ref: controller-v1.8.2

- name: Create registries auth secret
run: |
kubectl -n ingress-nginx patch cm ingress-nginx-controller \
-p '{"data": {"allow-snippet-annotations":"true"}}'
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
Expand Down

0 comments on commit 965d450

Please sign in to comment.