Skip to content

Commit 5eff77c

Browse files
committed
Update to latest GHA best practices and versions.
1 parent 1b33585 commit 5eff77c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/container-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: make date tag
1818
id: mkdatetag
19-
run: echo "::set-output name=dtag::$(date +%Y%m%d-%H%M)"
19+
run: echo "dtag=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT
2020

2121
build:
2222
runs-on: ubuntu-latest
@@ -26,7 +26,7 @@ jobs:
2626
matrix:
2727
repo: ['release']
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030

3131
- name: Generate tag list
3232
id: generate-tag-list
@@ -44,20 +44,20 @@ jobs:
4444
# This causes the tag_list array to be comma-separated below,
4545
# which is required for build-push-action
4646
IFS=,
47-
echo "::set-output name=taglist::${tag_list[*]}"
47+
echo "taglist=${tag_list[*]}" >> $GITHUB_OUTPUT
4848
4949
- name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@v1
50+
uses: docker/setup-buildx-action@v2.7.0
5151

5252
- name: Log in to OSG Harbor
53-
uses: docker/login-action@v1
53+
uses: docker/login-action@v2.2.0
5454
with:
5555
registry: hub.opensciencegrid.org
5656
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
5757
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
5858

5959
- name: Build and push Docker images
60-
uses: docker/build-push-action@v2.2.0
60+
uses: docker/build-push-action@v4
6161
with:
6262
context: .
6363
push: true

0 commit comments

Comments
 (0)