Skip to content

Commit

Permalink
return to normal CI behavious and add the new image for the cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
garciagenrique committed Nov 13, 2024
1 parent aea1b65 commit 66f044b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-autobuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker automatic build and publish when changes in container dir
on:
push:
branches:
- iam_sync_debug
- main

env:
REGISTRY: ghcr.io
Expand Down
20 changes: 5 additions & 15 deletions infrastructure/cluster/flux/rucio/rucio-cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ spec:
restartPolicy: OnFailure
containers:
- name: iam-sync
image: ghcr.io/vre-hub/vre-iam-rucio-sync:v1.0.0-rc.2
volumeMounts:
- name: rucio-cfg
mountPath: /opt/rucio/etc/
- name: daemons-rucio-x509up
mountPath: /tmp/
image: ghcr.io/vre-hub/vre-iam-rucio-sync:v1.0.0-rc.2-82-aea1b65
env:
- name: IAM_SERVER
value: "https://iam-escape.cloud.cnaf.infn.it/"
Expand All @@ -34,22 +29,17 @@ spec:
secretKeyRef:
name: rucio-admin-iam-client
key: admin-client_id
# For clarity/completeness the client_id value is can be passed via a secret/env var,
# but it is already passed as a value within the `iam-sync.conf` file.
tty: true
imagePullPolicy: Always
command:
- /bin/sh
- -c
- date; echo Hello from iam-rucio-sync container;
pwd; ls;rucio whoami;
- date; echo '* Hello from iam-rucio-sync container *';
pwd; ls;
echo $IAM_SERVER; echo $IAM_CLIENT_ID; echo $IAM_CLIENT_SECRET; python3 /home/sync_iam_rucio.py;
echo '* Sync to IAM * Done!'
volumes:
- name: rucio-cfg
secret:
secretName: escape-service-account
- name: daemons-rucio-x509up
secret:
secretName: daemons-rucio-x509up
# ---
# apiVersion: batch/v1
# kind: CronJob
Expand Down

0 comments on commit 66f044b

Please sign in to comment.