Skip to content

Commit

Permalink
Migrate to shared-actions v2
Browse files Browse the repository at this point in the history
> [!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.
  • Loading branch information
ahatzz11 committed Sep 10, 2024
1 parent 82f9d17 commit 4545a28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Get Version
run: |
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
if: github.event_name == 'release'

- name: Upload server Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: server
path: server/build/libs/*.jar
Expand All @@ -71,7 +71,7 @@ jobs:
if: github.event_name == 'release'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Get Version
run: |
Expand Down Expand Up @@ -108,27 +108,27 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
with:
install: true

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

- name: Download Artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: server
path: server/build/libs

- name: Log into DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: server
file: server/docker/Dockerfile
Expand Down

0 comments on commit 4545a28

Please sign in to comment.