mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
ci: replace set-output (#1928)
* ci: replace set-output * ci: use env var format Co-authored-by: toast-gear <toast-gear@users.noreply.github.com>
This commit is contained in:
@@ -14,18 +14,13 @@ inputs:
|
|||||||
description: "GHCR password. Usually set from the secrets.GITHUB_TOKEN variable"
|
description: "GHCR password. Usually set from the secrets.GITHUB_TOKEN variable"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
outputs:
|
|
||||||
sha_short:
|
|
||||||
description: "The short SHA used for image builds"
|
|
||||||
value: ${{ steps.vars.outputs.sha_short }}
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Get Short SHA
|
- name: Get Short SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=sha_short::${GITHUB_SHA::7}
|
echo "sha_short=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|||||||
5
.github/workflows/publish-arc.yaml
vendored
5
.github/workflows/publish-arc.yaml
vendored
@@ -45,7 +45,6 @@ jobs:
|
|||||||
make github-release
|
make github-release
|
||||||
|
|
||||||
- name: Setup Docker Environment
|
- name: Setup Docker Environment
|
||||||
id: vars
|
|
||||||
uses: ./.github/actions/setup-docker-environment
|
uses: ./.github/actions/setup-docker-environment
|
||||||
with:
|
with:
|
||||||
username: ${{ env.DOCKERHUB_USERNAME }}
|
username: ${{ env.DOCKERHUB_USERNAME }}
|
||||||
@@ -63,9 +62,9 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest
|
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest
|
||||||
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}
|
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}
|
||||||
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}-${{ steps.vars.outputs.sha_short }}
|
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}-${{ env.sha_short }}
|
||||||
ghcr.io/actions-runner-controller/actions-runner-controller:latest
|
ghcr.io/actions-runner-controller/actions-runner-controller:latest
|
||||||
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }}
|
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }}
|
||||||
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }}-${{ steps.vars.outputs.sha_short }}
|
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }}-${{ env.sha_short }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
5
.github/workflows/runners.yaml
vendored
5
.github/workflows/runners.yaml
vendored
@@ -56,7 +56,6 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Docker Environment
|
- name: Setup Docker Environment
|
||||||
id: vars
|
|
||||||
uses: ./.github/actions/setup-docker-environment
|
uses: ./.github/actions/setup-docker-environment
|
||||||
with:
|
with:
|
||||||
username: ${{ env.DOCKERHUB_USERNAME }}
|
username: ${{ env.DOCKERHUB_USERNAME }}
|
||||||
@@ -77,10 +76,10 @@ jobs:
|
|||||||
RUNNER_CONTAINER_HOOKS_VERSION=${{ env.RUNNER_CONTAINER_HOOKS_VERSION }}
|
RUNNER_CONTAINER_HOOKS_VERSION=${{ env.RUNNER_CONTAINER_HOOKS_VERSION }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}
|
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}
|
||||||
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}-${{ steps.vars.outputs.sha_short }}
|
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}-${{ env.sha_short }}
|
||||||
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:latest
|
${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:latest
|
||||||
ghcr.io/${{ github.repository }}/${{ matrix.name }}:latest
|
ghcr.io/${{ github.repository }}/${{ matrix.name }}:latest
|
||||||
ghcr.io/${{ github.repository }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}
|
ghcr.io/${{ github.repository }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}
|
||||||
ghcr.io/${{ github.repository }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}-${{ steps.vars.outputs.sha_short }}
|
ghcr.io/${{ github.repository }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-${{ matrix.os-name }}-${{ matrix.os-version }}-${{ env.sha_short }}
|
||||||
cache-from: type=gha,scope=build-${{ matrix.name }}
|
cache-from: type=gha,scope=build-${{ matrix.name }}
|
||||||
cache-to: type=gha,mode=max,scope=build-${{ matrix.name }}
|
cache-to: type=gha,mode=max,scope=build-${{ matrix.name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user