# In this directory, run the following command to build this builder.
# $ gcloud builds submit . --config=lolcow.yaml

steps:
- name: 'gcr.io/$PROJECT_ID/apptainer'
  args:
  - 'build'
  - '--fakeroot'
  - 'montecarlo.sif'
  - 'montecarlo_apptainer.def'
- name: 'gcr.io/$PROJECT_ID/apptainer'
  args:
  - 'push'
  - 'montecarlo.sif'
  - 'oras://${_LOCATION}/$PROJECT_ID/${_REPOSITORY}/montecarlo:${_VERSION}'
options:
  machineType: 'E2_HIGHCPU_8'
substitutions:
  _LOCATION: us-docker.pkg.dev
  _REPOSITORY: sifs
  _VERSION: latest
