|
1 |
| -name: Publish on npm and brew |
| 1 | +name: Publish code-server |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | # Shows the manual trigger in GitHub UI
|
|
21 | 21 | npm:
|
22 | 22 | runs-on: ubuntu-latest
|
23 | 23 | steps:
|
| 24 | + - name: Checkout code-server |
24 | 25 | - uses: actions/checkout@v3
|
25 | 26 |
|
26 | 27 | - name: Get version
|
@@ -116,3 +117,44 @@ jobs:
|
116 | 117 | git commit -m "chore: updating version to ${{ steps.version.outputs.version }}"
|
117 | 118 | git push -u origin $(git branch --show)
|
118 | 119 | gh pr create --repo coder/code-server-aur --title "chore: bump version to ${{ steps.version.outputs.version }}" --body "PR opened by @$GITHUB_ACTOR" --assignee $GITHUB_ACTOR
|
| 120 | + docker: |
| 121 | + runs-on: ubuntu-20.04 |
| 122 | + steps: |
| 123 | + - name: Checkout code-server |
| 124 | + uses: actions/checkout@v3 |
| 125 | + |
| 126 | + - name: Set up QEMU |
| 127 | + uses: docker/setup-qemu-action@v2 |
| 128 | + |
| 129 | + - name: Set up Docker Buildx |
| 130 | + uses: docker/setup-buildx-action@v2 |
| 131 | + |
| 132 | + - name: Login to Docker Hub |
| 133 | + uses: docker/login-action@v2 |
| 134 | + with: |
| 135 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 136 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 137 | + |
| 138 | + - name: Login to GHCR |
| 139 | + uses: docker/login-action@v2 |
| 140 | + with: |
| 141 | + registry: ghcr.io |
| 142 | + username: ${{ github.actor }} |
| 143 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 144 | + |
| 145 | + - name: Get version |
| 146 | + id: version |
| 147 | + run: echo "::set-output name=version::$(jq -r .version package.json)" |
| 148 | + |
| 149 | + - name: Download release artifacts |
| 150 | + uses: robinraju/release-downloader@v1.4 |
| 151 | + with: |
| 152 | + repository: "coder/code-server" |
| 153 | + tag: v${{ steps.version.outputs.version }} |
| 154 | + fileName: "*.deb" |
| 155 | + out-file-path: "release-packages" |
| 156 | + |
| 157 | + - name: Publish to Docker |
| 158 | + run: yarn publish:docker |
| 159 | + env: |
| 160 | + GITHUB_TOKEN: ${{ github.token }} |
0 commit comments