Skip to content

Commit 33c72f4

Browse files
authored
Merge pull request #104 from jtakaki-matc/set-output-fix
Fix GHA deprecation warnings in find-hotfix-tags (Software-5354)
2 parents eec2d97 + 50fca6d commit 33c72f4

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

.github/find-hotfix-tags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ cat dockerhub_tags
4040
build_candidate=$(comm -23 git_tags dockerhub_tags | head -n 1)
4141

4242
echo "Found hotfix tag build candidate: $build_candidate"
43-
echo "::set-output name=tag::$build_candidate"
43+
echo "tag=$build_candidate" >> $GITHUB_OUTPUT

.github/workflows/release-series-builds.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
osg_series: ['3.6']
2525
steps:
2626

27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828

2929
- name: Cache base image
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
path: /tmp/.base-buildx-cache
3333
key: base-${{ matrix.osg_series}}-${{ matrix.repo }}-buildx-${{ github.sha }}-${{ github.run_id }}
@@ -37,10 +37,10 @@ jobs:
3737
base-${{ matrix.osg_series }}-${{ matrix.repo }}-buildx-
3838
3939
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@v1
40+
uses: docker/setup-buildx-action@v2.7.0
4141

4242
- name: Build Docker image
43-
uses: docker/build-push-action@v2.2.2
43+
uses: docker/build-push-action@v4
4444
with:
4545
context: .
4646
build-args: |
@@ -61,25 +61,25 @@ jobs:
6161
osg_series: ['3.6']
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v2
64+
- uses: actions/checkout@v3
6565

6666
- name: Load cached base image
67-
uses: actions/cache@v2
67+
uses: actions/cache@v3
6868
with:
6969
path: /tmp/.base-buildx-cache
7070
key: base-${{ matrix.osg_series }}-${{ matrix.repo }}-buildx-${{ github.sha }}-${{ github.run_id }}
7171

7272
- name: Cache child image
73-
uses: actions/cache@v2
73+
uses: actions/cache@v3
7474
with:
7575
path: /tmp/.${{ matrix.image }}-buildx-cache
7676
key: ${{ matrix.image}}-${{matrix.osg_series }}-${{ matrix.repo}}-build-${{ github.sha}}-${{ github.run_id }}
7777

7878
- name: Set up Docker Buildx
79-
uses: docker/setup-buildx-action@v1
79+
uses: docker/setup-buildx-action@v2.7.0
8080

8181
- name: Build Docker image
82-
uses: docker/build-push-action@v2.2.2
82+
uses: docker/build-push-action@v4
8383
with:
8484
context: .
8585
build-args: |
@@ -100,25 +100,25 @@ jobs:
100100
repo: ['development', 'testing', 'release']
101101
osg_series: ['3.6']
102102
steps:
103-
- uses: actions/checkout@v2
103+
- uses: actions/checkout@v3
104104

105105
- name: Load stash-cache build cache
106-
uses: actions/cache@v2
106+
uses: actions/cache@v3
107107
with:
108108
path: /tmp/.stash-cache-buildx-cache
109109
key: stash-cache-${{ matrix.osg_series }}-${{ matrix.repo}}-build-${{ github.sha}}-${{ github.run_id }}
110110

111111
- name: Load stash-origin build cache
112-
uses: actions/cache@v2
112+
uses: actions/cache@v3
113113
with:
114114
path: /tmp/.stash-origin-buildx-cache
115115
key: stash-origin-${{ matrix.osg_series }}-${{ matrix.repo}}-build-${{ github.sha}}-${{ github.run_id }}
116116

117117
- name: Set up Docker Buildx
118-
uses: docker/setup-buildx-action@v1
118+
uses: docker/setup-buildx-action@v2.7.0
119119

120120
- name: Load stash-cache image
121-
uses: docker/build-push-action@v2.2.2
121+
uses: docker/build-push-action@v4
122122
with:
123123
context: .
124124
build-args: |
@@ -130,7 +130,7 @@ jobs:
130130
cache-from: type=local,src=/tmp/.stash-cache-buildx-cache
131131

132132
- name: Load stash-origin image
133-
uses: docker/build-push-action@v2.2.2
133+
uses: docker/build-push-action@v4
134134
with:
135135
context: .
136136
build-args: |
@@ -152,7 +152,7 @@ jobs:
152152
steps:
153153
- name: make date tag
154154
id: mkdatetag
155-
run: echo "::set-output name=dtag::$(date +%Y%m%d-%H%M)"
155+
run: echo "dtag=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT
156156

157157
push-images:
158158
name: Push ${{ matrix.image }}:${{ matrix.osg_series }}-${{ matrix.repo }} image
@@ -165,10 +165,10 @@ jobs:
165165
needs: [make-date-tag, test-stash-cache]
166166
runs-on: ubuntu-latest
167167
steps:
168-
- uses: actions/checkout@v2
168+
- uses: actions/checkout@v3
169169

170170
- name: Load cached child image
171-
uses: actions/cache@v2
171+
uses: actions/cache@v3
172172
with:
173173
path: /tmp/.${{ matrix.image }}-buildx-cache
174174
key: ${{ matrix.image}}-${{ matrix.osg_series }}-${{ matrix.repo}}-build-${{ github.sha}}-${{ github.run_id }}
@@ -191,26 +191,26 @@ jobs:
191191
# This causes the tag_list array to be comma-separated below,
192192
# which is required for build-push-action
193193
IFS=,
194-
echo "::set-output name=taglist::${tag_list[*]}"
194+
echo "taglist=${tag_list[*]}" >> $GITHUB_OUTPUT
195195
196196
- name: Set up Docker Buildx
197-
uses: docker/setup-buildx-action@v1
197+
uses: docker/setup-buildx-action@v2.7.0
198198

199199
- name: Log in to Docker Hub
200-
uses: docker/login-action@v1
200+
uses: docker/login-action@v2.2.0
201201
with:
202202
username: ${{ secrets.DOCKER_USERNAME }}
203203
password: ${{ secrets.DOCKER_PASSWORD }}
204204

205205
- name: Log in to OSG Harbor
206-
uses: docker/login-action@v1
206+
uses: docker/login-action@v2.2.0
207207
with:
208208
registry: hub.opensciencegrid.org
209209
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
210210
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
211211

212212
- name: Build ${{ matrix.image}} image
213-
uses: docker/build-push-action@v2.2.2
213+
uses: docker/build-push-action@v4
214214
with:
215215
context: .
216216
push: True

0 commit comments

Comments
 (0)