Skip to content

Commit

Permalink
back docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cordx56 committed Nov 11, 2024
1 parent f57d0cc commit df570f8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,45 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
server:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

# Setup Docker
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v6
with:
push: true
context: rustowl-server
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

extension:
runs-on: ubuntu-latest

Expand Down
8 changes: 8 additions & 0 deletions rustowl-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,21 @@ export function activate(context: vscode.ExtensionContext) {
context.subscriptions
);

if (dockerStatus === "not started") {
startServer();
}
/*
if (serverProcess === undefined) {
runServer();
}
*/
}

export function deactivate() {
dockerStop();
/*
if (serverProcess instanceof ChildProcess) {
serverProcess.kill();
}
*/
}

0 comments on commit df570f8

Please sign in to comment.