chore(ci): set environment variables directly

This commit is contained in:
Matthias
2025-09-02 07:23:10 +02:00
parent 6c5771b40c
commit fe466e2e86

View File

@@ -42,7 +42,6 @@ jobs:
python-version: "3.12" python-version: "3.12"
- name: Extract branch name - name: Extract branch name
id: extract-branch
env: env:
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }} BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
run: | run: |
@@ -52,7 +51,8 @@ jobs:
BRANCH_NAME="${GITHUB_REF##*/}" BRANCH_NAME="${GITHUB_REF##*/}"
fi fi
echo "GITHUB_REF='${GITHUB_REF}'" echo "GITHUB_REF='${GITHUB_REF}'"
echo "branch=${BRANCH_NAME}" >> "$GITHUB_OUTPUT" echo "BRANCH_NAME='${BRANCH_NAME}'"
echo "BRANCH_NAME=${BRANCH_NAME}" >> "$GITHUB_ENV"
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
@@ -74,8 +74,6 @@ jobs:
PLATFORMS: ${{ steps.buildx.outputs.platforms }} PLATFORMS: ${{ steps.buildx.outputs.platforms }}
- name: Build and test and push docker images - name: Build and test and push docker images
env:
BRANCH_NAME: ${{ steps.extract-branch.outputs.branch }}
run: | run: |
build_helpers/publish_docker_multi.sh build_helpers/publish_docker_multi.sh
@@ -94,7 +92,6 @@ jobs:
persist-credentials: false persist-credentials: false
- name: Extract branch name - name: Extract branch name
id: extract-branch
env: env:
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }} BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
run: | run: |
@@ -104,7 +101,8 @@ jobs:
BRANCH_NAME="${GITHUB_REF##*/}" BRANCH_NAME="${GITHUB_REF##*/}"
fi fi
echo "GITHUB_REF='${GITHUB_REF}'" echo "GITHUB_REF='${GITHUB_REF}'"
echo "branch=${BRANCH_NAME}" >> "$GITHUB_OUTPUT" echo "BRANCH_NAME='${BRANCH_NAME}'"
echo "BRANCH_NAME=${BRANCH_NAME}" >> "$GITHUB_ENV"
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
@@ -114,7 +112,6 @@ jobs:
- name: Build and test and push docker images - name: Build and test and push docker images
env: env:
BRANCH_NAME: ${{ steps.extract-branch.outputs.branch }}
GHCR_USERNAME: ${{ github.actor }} GHCR_USERNAME: ${{ github.actor }}
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |