Skip to content

Commit

Permalink
CD : Deploy to Stroj ( prod or dev)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoFabien committed Jul 5, 2024
1 parent 977a4b5 commit 31c98d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 39 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/deployProd.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Deployment to dev.osmgo.com
name: Deployment to osmgo.com || dev.osmgo.com

on:
push:
branches:
- develop
- main
- master

jobs:
deployment:
Expand Down Expand Up @@ -55,5 +57,8 @@ jobs:
run: |
rclone config create storj s3 env_auth false access_key_id $RCLONE_CONFIG_MYREMOTE_ACCESS_KEY_ID secret_access_key $RCLONE_CONFIG_MYREMOTE_SECRET_ACCESS_KEY endpoint $RCLONE_CONFIG_MYREMOTE_ENDPOINT
- name: Set bucket name
run: echo "BUCKET_NAME=$(if [ '${{ github.ref }}' = 'refs/heads/main' ] || [ '${{ github.ref }}' = 'refs/heads/master' ]; then echo 'osmgo-prod'; else echo 'osmgo-dev'; fi)" >> $GITHUB_ENV

- name: Deploy to S3 with rclone
run: rclone sync -v www storj:/osmgo-dev
run: rclone sync www storj:/${{ env.BUCKET_NAME }}

0 comments on commit 31c98d1

Please sign in to comment.