adamant-kite-43734
07/06/2023, 10:43 AMmammoth-scooter-66898
07/06/2023, 11:21 AMapiVersion: <http://gitjob.cattle.io/v1|gitjob.cattle.io/v1>
kind: GitJob
metadata:
# The name of the GitJob, doesn't need to match the project.
name: gcdemo-gitpush
namespace: epinio
spec:
syncInterval: 15
git:
# The git repo and branch to track.
repo: <https://github.com/paales/graphcommerce-magento-graphcms>
branch: main
jobSpec:
template:
spec:
# This should match what we created in the last step
serviceAccountName: epinio-push
restartPolicy: 'Never'
containers:
# This version should match your epinio deployment
- image: '<http://ghcr.io/epinio/epinio-server:v1.8.1|ghcr.io/epinio/epinio-server:v1.8.1>'
name: epinio-push
volumeMounts:
- name: settings
mountPath: '/settings/'
readOnly: true
env:
- name: EPINIO_CONFIG
value: '/settings/settings.yaml'
command:
- /epinio
args:
- push
# This is the name of the app to push
- gcdemo
workingDir: /workspace/source
volumes:
- name: settings
secret:
secretName: epinio-creds