@@ -285,54 +285,54 @@ jobs:
285285 asset_name : actions-runner-linux-arm64-${{ steps.releaseNote.outputs.version }}.tar.gz
286286 asset_content_type : application/octet-stream
287287
288- publish-image :
289- needs : release
290- runs-on : ubuntu-latest
291- permissions :
292- contents : read
293- packages : write
294- env :
295- REGISTRY : ghcr.io
296- IMAGE_NAME : ${{ github.repository_owner }}/actions-runner
297- steps :
298- - name : Checkout repository
299- uses : actions/checkout@v3
300-
301- - name : Compute image version
302- id : image
303- uses : actions/github-script@v6
304- with :
305- script : |
306- const fs = require('fs');
307- const runnerVersion = fs.readFileSync('${{ github.workspace }}/releaseVersion', 'utf8').replace(/\n$/g, '')
308- console.log(`Using runner version ${runnerVersion}`)
309- core.setOutput('version', runnerVersion);
310-
311- - name : Setup Docker buildx
312- uses : docker/setup-buildx-action@v2
313-
314- - name : Log into registry ${{ env.REGISTRY }}
315- uses : docker/login-action@v2
316- with :
317- registry : ${{ env.REGISTRY }}
318- username : ${{ github.actor }}
319- password : ${{ secrets.GITHUB_TOKEN }}
320-
321- - name : Build and push Docker image
322- id : build-and-push
323- uses : docker/build-push-action@v3
324- with :
325- context : ./images
326- platforms : |
327- linux/amd64
328- linux/arm64
329- tags : |
330- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.version }}
331- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
332- build-args : |
333- RUNNER_VERSION=${{ steps.image.outputs.version }}
334- push : true
335- labels : |
336- org.opencontainers.image.source=${{github.server_url}}/${{github.repository}}
337- org.opencontainers.image.description=https://github.com/actions/runner/releases/tag/v${{ steps.image.outputs.version }}
338- org.opencontainers.image.licenses=MIT
288+ # publish-image:
289+ # needs: release
290+ # runs-on: ubuntu-latest
291+ # permissions:
292+ # contents: read
293+ # packages: write
294+ # env:
295+ # REGISTRY: ghcr.io
296+ # IMAGE_NAME: ${{ github.repository_owner }}/actions-runner
297+ # steps:
298+ # - name: Checkout repository
299+ # uses: actions/checkout@v3
300+
301+ # - name: Compute image version
302+ # id: image
303+ # uses: actions/github-script@v6
304+ # with:
305+ # script: |
306+ # const fs = require('fs');
307+ # const runnerVersion = fs.readFileSync('${{ github.workspace }}/releaseVersion', 'utf8').replace(/\n$/g, '')
308+ # console.log(`Using runner version ${runnerVersion}`)
309+ # core.setOutput('version', runnerVersion);
310+
311+ # - name: Setup Docker buildx
312+ # uses: docker/setup-buildx-action@v2
313+
314+ # - name: Log into registry ${{ env.REGISTRY }}
315+ # uses: docker/login-action@v2
316+ # with:
317+ # registry: ${{ env.REGISTRY }}
318+ # username: ${{ github.actor }}
319+ # password: ${{ secrets.GITHUB_TOKEN }}
320+
321+ # - name: Build and push Docker image
322+ # id: build-and-push
323+ # uses: docker/build-push-action@v3
324+ # with:
325+ # context: ./images
326+ # platforms: |
327+ # linux/amd64
328+ # linux/arm64
329+ # tags: |
330+ # ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.image.outputs.version }}
331+ # ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
332+ # build-args: |
333+ # RUNNER_VERSION=${{ steps.image.outputs.version }}
334+ # push: true
335+ # labels: |
336+ # org.opencontainers.image.source=${{github.server_url}}/${{github.repository}}
337+ # org.opencontainers.image.description=https://github.com/actions/runner/releases/tag/v${{ steps.image.outputs.version }}
338+ # org.opencontainers.image.licenses=MIT
0 commit comments