added docker-compose to gitignore #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy Polybase | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| actions: read | |
| concurrency: | |
| group: deploy-polybase | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build polybase package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Install nix | |
| uses: cachix/install-nix-action@v22 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: Build package | |
| run: nix build | |
| - name: Upload build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: result | |
| path: result/ | |
| deploy: | |
| name: Deploy to openbsd server | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download build result | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: result | |
| path: result/ | |
| - name: Install SSH key | |
| uses: shimataro/ssh-key-action@v2 | |
| with: | |
| key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| known_hosts: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} | |
| - name: Deploy to server | |
| run: | | |
| scp -r result/* ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOSTNAME }}:/tmp/ | |
| ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOSTNAME }} 'cd /tmp && sh install.sh' |