forked from repo-mirrors/cnpg-postgres-containers
chore: replace deprecated set-output command (#43)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
7
.github/generate-strategy.sh
vendored
7
.github/generate-strategy.sh
vendored
@@ -13,6 +13,8 @@ declare -A aliases=(
|
|||||||
[15]='latest'
|
[15]='latest'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
GITHUB_ACTIONS=${GITHUB_ACTIONS:-false}
|
||||||
|
|
||||||
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}/..")")"
|
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}/..")")"
|
||||||
BASE_DIRECTORY="$(pwd)"
|
BASE_DIRECTORY="$(pwd)"
|
||||||
|
|
||||||
@@ -71,4 +73,7 @@ done
|
|||||||
# Build the strategy as a JSON object
|
# Build the strategy as a JSON object
|
||||||
strategy="{\"fail-fast\": false, \"matrix\": {\"include\": [$(join ', ' "${entries[@]}")]}}"
|
strategy="{\"fail-fast\": false, \"matrix\": {\"include\": [$(join ', ' "${entries[@]}")]}}"
|
||||||
jq -C . <<<"$strategy" # sanity check / debugging aid
|
jq -C . <<<"$strategy" # sanity check / debugging aid
|
||||||
echo "::set-output name=strategy::$(jq -c . <<<"$strategy")"
|
|
||||||
|
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
|
||||||
|
echo "strategy=$(jq -c . <<<"$strategy")" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -44,7 +44,6 @@ jobs:
|
|||||||
platforms: ${{ matrix.platforms }}
|
platforms: ${{ matrix.platforms }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker-meta
|
|
||||||
env:
|
env:
|
||||||
TAGS: ${{ toJson(matrix.tags) }}
|
TAGS: ${{ toJson(matrix.tags) }}
|
||||||
run: |
|
run: |
|
||||||
@@ -58,10 +57,9 @@ jobs:
|
|||||||
RESULT="${RESULT},ghcr.io/${IMAGE_RELEASE}:${tag}"
|
RESULT="${RESULT},ghcr.io/${IMAGE_RELEASE}:${tag}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "::set-output name=tags::${RESULT%,}"
|
echo "TAGS=${RESULT%,}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log in to the GitHub Container registry
|
- name: Log in to the GitHub Container registry
|
||||||
@@ -78,7 +76,7 @@ jobs:
|
|||||||
file: ${{ matrix.file }}
|
file: ${{ matrix.file }}
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
tags: ${{ steps.docker-meta.outputs.tags }}
|
tags: ${{ env.TAGS }}
|
||||||
|
|
||||||
- name: Dockle scan
|
- name: Dockle scan
|
||||||
uses: erzz/dockle-action@v1
|
uses: erzz/dockle-action@v1
|
||||||
@@ -96,4 +94,4 @@ jobs:
|
|||||||
file: ${{ matrix.file }}
|
file: ${{ matrix.file }}
|
||||||
platforms: ${{ matrix.platforms }}
|
platforms: ${{ matrix.platforms }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.docker-meta.outputs.tags }}
|
tags: ${{ env.TAGS }}
|
||||||
|
1
.github/workflows/update.yml
vendored
1
.github/workflows/update.yml
vendored
@@ -40,7 +40,6 @@ jobs:
|
|||||||
branch: main
|
branch: main
|
||||||
enforce_admins: false
|
enforce_admins: false
|
||||||
- uses: EndBug/add-and-commit@v9
|
- uses: EndBug/add-and-commit@v9
|
||||||
id: commit
|
|
||||||
with:
|
with:
|
||||||
author_name: EnterpriseDB Automated Updates
|
author_name: EnterpriseDB Automated Updates
|
||||||
author_email: noreply@enterprisedb.com
|
author_email: noreply@enterprisedb.com
|
||||||
|
Reference in New Issue
Block a user