Skip to content

Commit 4545a28

Browse files
committed
Migrate to shared-actions v2
> [!IMPORTANT] > **Please thoroughly review this PR before approving and merging** > This migration is complicated and may require some manual changes. Below we will call out breaking changes and other important notes. This PR moves all workflows to the new shared-actions v2. Please check out the following docs for more information on this migration: - [Migration Guide](https://docs.devops.figure.com/shared-actions/v2-migration-guide) - [Migration Changes](https://docs.devops.figure.com/shared-actions/v2-migration-changes) Please reach out to [#github-actions-help](https://figure-group.slack.com/archives/C044W9BRAVD) with any and all questions, someone from devops or core tech will be able to help. --- ### Notes - Once you've merged in this PR and are running `v2` actions it is worth watching your workflows for warnings about inputs that are no longer used. We are able to handle a lot of replacements automatically, but we err on the side of caution to avoid breaking other github actions that we don't own. These warnings won't ever break your builds, but it is good practice to keep them clean. - Some other common upgrades are also done in this PR, like updating other `actions/` to their latest versions. 🤖🪄 This PR was automatically created by a magic script.
1 parent 82f9d17 commit 4545a28

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020

2121
- name: Get Version
2222
run: |
@@ -58,7 +58,7 @@ jobs:
5858
if: github.event_name == 'release'
5959

6060
- name: Upload server Artifact
61-
uses: actions/upload-artifact@v2
61+
uses: actions/upload-artifact@v4
6262
with:
6363
name: server
6464
path: server/build/libs/*.jar
@@ -71,7 +71,7 @@ jobs:
7171
if: github.event_name == 'release'
7272

7373
steps:
74-
- uses: actions/checkout@v2
74+
- uses: actions/checkout@v4
7575

7676
- name: Get Version
7777
run: |
@@ -108,27 +108,27 @@ jobs:
108108

109109
- name: Set up Docker Buildx
110110
id: buildx
111-
uses: docker/setup-buildx-action@v1
111+
uses: docker/setup-buildx-action@v3
112112
with:
113113
install: true
114114

115115
- name: Available platforms
116116
run: echo ${{ steps.qemu.outputs.platforms }}
117117

118118
- name: Download Artifact
119-
uses: actions/download-artifact@v2
119+
uses: actions/download-artifact@v4
120120
with:
121121
name: server
122122
path: server/build/libs
123123

124124
- name: Log into DockerHub
125-
uses: docker/login-action@v2
125+
uses: docker/login-action@v3
126126
with:
127127
username: ${{ secrets.DOCKERHUB_USERNAME }}
128128
password: ${{ secrets.DOCKERHUB_TOKEN }}
129129

130130
- name: Build and push
131-
uses: docker/build-push-action@v3
131+
uses: docker/build-push-action@v6
132132
with:
133133
context: server
134134
file: server/docker/Dockerfile

0 commit comments

Comments
 (0)