Skip to content

Commit

Permalink
add replication workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Dec 17, 2024
1 parent cb1efdc commit 873eb87
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/replicate-monthly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: bcdata-replicate-monthly
run-name: ${{ github.actor }} Monthly data replication
on:
schedule:
- cron: '0 15 14 * *'
workflow_dispatch:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL: https://nrs.objectstore.gov.bc.ca
AWS_S3_ENDPOINT: nrs.objectstore.gov.bc.ca
AWS_VIRTUAL_HOSTING: FALSE
AWS_EC2_METADATA_DISABLED: True
CPL_VSISTDIN_BUFFER_LIMIT: -1
jobs:
replicate:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: |
jobs/replicate_bcgw M
25 changes: 25 additions & 0 deletions .github/workflows/replicate-weekly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: bcdata-replicate-weekly
run-name: ${{ github.actor }} Monthly data replication
on:
schedule:
- cron: '0 23 * * THU'
workflow_dispatch:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL: https://nrs.objectstore.gov.bc.ca
AWS_S3_ENDPOINT: nrs.objectstore.gov.bc.ca
AWS_VIRTUAL_HOSTING: FALSE
AWS_EC2_METADATA_DISABLED: True
CPL_VSISTDIN_BUFFER_LIMIT: -1
jobs:
replicate:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: |
jobs/replicate_bcgw W

0 comments on commit 873eb87

Please sign in to comment.