Skip to content

Commit

Permalink
Upgrade GHA used actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mannkind committed Jun 3, 2024
1 parent d203517 commit 969e72b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
version: ${{ steps.version.outputs.number }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

Expand All @@ -43,16 +43,16 @@ jobs:
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to Dockerhub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -64,7 +64,7 @@ jobs:
docker context create builders
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
endpoint: builders

Expand All @@ -76,7 +76,7 @@ jobs:
- name: Build and Push (Dev)
if: github.event_name == 'workflow_dispatch'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
platforms: "linux/amd64,linux/arm64,linux/arm/v7"
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Build and Push (Main)
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
platforms: "linux/amd64,linux/arm64,linux/arm/v7"
Expand All @@ -101,7 +101,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Tag Revision
run: |
git tag -f ${{ needs.build.outputs.version }}
Expand Down

0 comments on commit 969e72b

Please sign in to comment.