Skip to content

Commit

Permalink
disabled deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
beeinger committed Oct 2, 2024
1 parent d3b9f7e commit aee627f
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,28 @@ jobs:
# are configured in travis settings
# see https://serverless.com/framework/docs/providers/aws/guide/credentials/
# for more information
deploy:
if: github.ref == 'refs/heads/release'
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
if: env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-2
run: |
cd backend
echo ${{ secrets.ENV_FILE }} > .env
sudo apt-get install musl-tools
export CC_x86_64_unknown_linux_musl=musl-gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc
rustup target add x86_64-unknown-linux-musl
yarn install --frozen-lockfile
yarn sls deploy --conceal --stage prod
# ! Uncomment the below to deploy to AWS
# deploy:
# if: github.ref == 'refs/heads/release'
# runs-on: ubuntu-latest
# needs: [test]
# steps:
# - name: Set up Rust
# uses: hecrj/setup-rust-action@v1
# - name: Checkout
# uses: actions/checkout@v2
# - name: Deploy
# if: env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_DEFAULT_REGION: eu-west-2
# run: |
# cd backend
# echo ${{ secrets.ENV_FILE }} > .env
# sudo apt-get install musl-tools
# export CC_x86_64_unknown_linux_musl=musl-gcc
# export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc
# rustup target add x86_64-unknown-linux-musl
# yarn install --frozen-lockfile
# yarn sls deploy --conceal --stage prod

0 comments on commit aee627f

Please sign in to comment.