Skip to content

Commit

Permalink
ci: update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Apr 30, 2024
1 parent 5aa3cb2 commit 0132fb1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/push.api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
show-progress: false

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

- name: 💾 Cache NuGet Packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS
path: ~/.nuget/packages
Expand All @@ -49,7 +49,7 @@ jobs:
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../coverage.xml /p:Configuration=Release api.mapserv.utah.gov.sln --verbosity q --nologo

- name: 📝️ Report coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand All @@ -68,7 +68,7 @@ jobs:
show-progress: false

- name: 🗝️ Authenticate to Google Cloud
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
id: auth
with:
create_credentials_file: true
Expand All @@ -77,18 +77,18 @@ jobs:
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}

- name: 🐳 Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
id: builder

- name: 🗝️ Authenticate Docker to Google CLoud
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

- name: 🏷️ Extract tags from GitHub
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
id: meta
with:
images: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/images/api
Expand All @@ -99,7 +99,7 @@ jobs:
type=raw,value=latest
- name: 📦 Build and push image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: ./src/api/Dockerfile
context: .
Expand All @@ -110,14 +110,14 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: 🔍️ Set Image Name
- name: 🔍️ Set image name
run: |
IMAGE_ID=$(echo $DOCKER_METADATA_OUTPUT_TAGS | cut -d ' ' -f 1)
echo "IMAGE_ID=$IMAGE_ID" >> $GITHUB_ENV
- name: 🚀 Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v1
uses: google-github-actions/deploy-cloudrun@v2
with:
service: api
image: ${{ env.IMAGE_ID }}
Expand Down Expand Up @@ -157,18 +157,18 @@ jobs:

- name: 🗝️ Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
token_format: "access_token"

- name: 🐳 Set up Docker Buildx
id: builder
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: ☁️ Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.DEV_PROJECT_ID }}

Expand All @@ -177,15 +177,15 @@ jobs:
gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE
- name: 🗝️ Authenticate Docker to Google Cloud
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

- name: 🏷️ Extract tags from GitHub
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/images/api
tags: |
Expand All @@ -196,7 +196,7 @@ jobs:
- name: 📦 Build and push image
id: image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: ./src/api/Dockerfile
builder: ${{ steps.builder.outputs.name }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
show-progress: false

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

- name: 💾 Cache NuGet Packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS
path: ~/.nuget/packages
Expand All @@ -46,7 +46,7 @@ jobs:
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../coverage.xml /p:Configuration=Release api.mapserv.utah.gov.sln --verbosity q --nologo

- name: 📝️ Report coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand All @@ -66,7 +66,7 @@ jobs:
show-progress: false

- name: 🗝️ Authenticate to Google Cloud
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
id: auth
with:
create_credentials_file: true
Expand Down Expand Up @@ -108,14 +108,14 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: 🔍️ Set Image Name
- name: 🔍️ Set image name
run: |
IMAGE_ID=$(echo $DOCKER_METADATA_OUTPUT_TAGS | cut -d ' ' -f 1)
echo "IMAGE_ID=$IMAGE_ID" >> $GITHUB_ENV
- name: 🚀 Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v1
uses: google-github-actions/deploy-cloudrun@v2
with:
service: api
image: ${{ env.IMAGE_ID }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
echo "firebase-tools=$(npm list -s --depth=0 | grep firebase-tools | tail -n 1 | sed 's/.*@//g')" >> GITHUB_OUTPUT
- name: 🪣 Cache firebase
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/firebase
key: ${{ runner.os }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }}

- name: 🗝️ Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
access_token_scopes: "email, openid, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/firebase"
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: npm run build

- name: 🪣 Cache firebase
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/firebase
key: ${{ runner.OS }}-firebase-${{ hashFiles('**/*.cache/firebase/**') }}
Expand All @@ -59,7 +59,7 @@ jobs:
- name: 🗝️ Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
access_token_scopes: "email, openid, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/firebase"
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
Expand Down

0 comments on commit 0132fb1

Please sign in to comment.