diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index bfb1a82a..88f89bef 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -7,94 +7,94 @@ on: branches: [develop] jobs: - build-local: - runs-on: [ubuntu-latest] - steps: - - uses: actions/setup-go@v3 - with: { go-version: 1.19 } - - - uses: actions/setup-node@v3 - with: { node-version: '16' } - - - run: go install github.com/go-task/task/v3/cmd/task@latest - - - uses: actions/checkout@v3 - - - run: task deps - - - run: task compile - - - name: Test that compile did not create/modify untracked files - run: git diff --exit-code --stat -- . ':(exclude)web/package.json' ':(exclude)web/package-lock.json' ':(exclude)go.mod' ':(exclude)go.sum' - - - run: task build:local GOOS= GOARCH= - - - run: task test - - - uses: actions/upload-artifact@master - with: - name: semaphore - path: bin/semaphore - retention-days: 1 - - - test-db-migration: - runs-on: [ubuntu-latest] - needs: [build-local] - steps: - - uses: shogo82148/actions-setup-mysql@v1 - with: - mysql-version: '5.6' - - - uses: Harmon758/postgresql-action@v1 - with: - postgresql version: '11' - postgresql db: 'circle_test' - postgresql user: 'root' - postgresql password: 'pwd' - - - uses: actions/download-artifact@master - with: - name: semaphore - - - run: "cat > config.json < config.json < config.json < config.json < config.json < config.json < Install Semaphore entrypoint wrapper script" mv ./deployment/docker/common/semaphore-wrapper /usr/local/bin/semaphore-wrapper +mv ./deployment/docker/common/runner-wrapper /usr/local/bin/runner-wrapper task deps chmod -R 0777 /go \ No newline at end of file diff --git a/deployment/docker/prod/bin/install b/deployment/docker/prod/bin/install index d08858cf..f0d21be5 100755 --- a/deployment/docker/prod/bin/install +++ b/deployment/docker/prod/bin/install @@ -19,3 +19,6 @@ chmod +x /usr/local/bin/semaphore mv ./deployment/docker/common/semaphore-wrapper /usr/local/bin/semaphore-wrapper chown 1001:0 /usr/local/bin/semaphore-wrapper + +mv ./deployment/docker/common/runner-wrapper /usr/local/bin/runner-wrapper +chown 1001:0 /usr/local/bin/runner-wrapper \ No newline at end of file