change set-output to GITHUB_OUTPUT env variable

This commit is contained in:
stojanovskis1@icloud.com 2024-03-05 11:52:43 +01:00
parent ad9d3b5a6a
commit 11e1e0b169
1 changed files with 10 additions and 10 deletions

View File

@ -27,7 +27,7 @@ jobs:
- name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
id: alpine id: alpine
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.10 alpine - name: Build CKAN 2.10 alpine
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -42,7 +42,7 @@ jobs:
- name: Get docker tag for Ubuntu image - name: Get docker tag for Ubuntu image
id: ubuntu id: ubuntu
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.focal)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.focal)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.10 ubuntu - name: Build CKAN 2.10 ubuntu
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -78,7 +78,7 @@ jobs:
- name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
id: alpine id: alpine
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.9 alpine - name: Build CKAN 2.9 alpine
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -93,7 +93,7 @@ jobs:
- name: Get docker tag for Ubuntu image - name: Get docker tag for Ubuntu image
id: ubuntu id: ubuntu
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile.focal)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile.focal)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.9 ubuntu - name: Build CKAN 2.9 ubuntu
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -128,7 +128,7 @@ jobs:
- name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
id: alpine id: alpine
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.8 alpine - name: Build CKAN 2.8 alpine
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -143,7 +143,7 @@ jobs:
- name: Get docker tag for Ubuntu image - name: Get docker tag for Ubuntu image
id: ubuntu id: ubuntu
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.8 ubuntu - name: Build CKAN 2.8 ubuntu
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -176,7 +176,7 @@ jobs:
- name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
id: alpine id: alpine
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.7 alpine - name: Build CKAN 2.7 alpine
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -191,7 +191,7 @@ jobs:
- name: Get docker tag for Ubuntu image - name: Get docker tag for Ubuntu image
id: ubuntu id: ubuntu
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" >> $GITHUB_OUTPUT
- name: Build CKAN 2.7 ubuntu - name: Build CKAN 2.7 ubuntu
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -222,7 +222,7 @@ jobs:
- name: Get docker tag for datapusher image - name: Get docker tag for datapusher image
id: datapusher id: datapusher
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build CKAN datapusher - name: Build CKAN datapusher
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -253,7 +253,7 @@ jobs:
- name: Get docker tag for psql-init image - name: Get docker tag for psql-init image
id: psql-init id: psql-init
run: | run: |
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)" echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)" >> $GITHUB_OUTPUT
- name: Build psql-init - name: Build psql-init
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5