Skip to content

Commit

Permalink
Use musl build in CI deployment #947
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Aug 21, 2024
1 parent 62a9e67 commit f6bd0dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
push:
branches:
- 'master'
- "master"
jobs:
deploy-production:
uses: './.github/workflows/deployment.yml'
uses: "./.github/workflows/deployment.yml"
with:
environment: production
remote_host: atomicdata.dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
push:
branches:
- 'develop'
- "develop"
jobs:
deploy-staging:
uses: './.github/workflows/deployment.yml'
uses: "./.github/workflows/deployment.yml"
with:
environment: staging
remote_host: staging.atomicdata.dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV

- name: Earthly build
run: earthly --org ontola --sat henk -P +build
run: earthly --org ontola --sat henk -P +cross-build -TARGET=x86_64-unknown-linux-musl

- name: Transfer binary rsync
uses: easingthemes/ssh-deploy@v3
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: "./artifact/bin/atomic-server-x86_64-unknown-linux-gnu"
SOURCE: "./artifact/bin/atomic-server-x86_64-unknown-linux-musl"
REMOTE_HOST: ${{ inputs.remote_host }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ~/
Expand All @@ -52,7 +52,7 @@ jobs:
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
mv ~/atomic-server-x86_64-unknown-linux-gnu ~/atomic-server
mv ~/atomic-server-x86_64-unknown-linux-musl ~/atomic-server
cp ~/atomic-server ~/atomic-server-$(date +'%Y-%m-%dT%H:%M:%S')
systemctl stop atomic
./atomic-server export &&
Expand Down

0 comments on commit f6bd0dd

Please sign in to comment.