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 6abe54b
Showing 1 changed file with 3 additions and 3 deletions.
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 6abe54b

Please sign in to comment.