diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 23e08c245..4000c43c9 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -39,17 +39,15 @@ jobs: id: version run: echo "::set-output name=version::$(jq -r .version package.json)" - - name: Download artifact - uses: dawidd6/action-download-artifact@v2 - id: download + - name: Download release artifacts + uses: robinraju/release-downloader@v1.3 with: - branch: v${{ steps.version.outputs.version }} - workflow: ci.yaml - workflow_conclusion: completed - name: "release-packages" - path: release-packages + repository: "coder/code-server" + tag: v${{ steps.version.outputs.version }} + fileName: "*.deb" + out-file-path: "release-packages" - - name: Run ./ci/steps/docker-buildx-push.sh - run: ./ci/steps/docker-buildx-push.sh + - name: Publish to Docker + run: yarn publish:docker env: GITHUB_TOKEN: ${{ github.token }} diff --git a/package.json b/package.json index f9fece378..0d9e7ad93 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "package": "./ci/build/build-packages.sh", "postinstall": "./ci/dev/postinstall.sh", "publish:npm": "./ci/steps/publish-npm.sh", + "publish:docker": "./ci/steps/docker-buildx-push.sh", "_audit": "./ci/dev/audit.sh", "fmt": "./ci/dev/fmt.sh", "lint": "./ci/dev/lint.sh",