Skip to content

Commit 0055789

Browse files
authored
Update actions versions (#73)
1 parent 02e588b commit 0055789

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

.github/steps/2-setup-azure-environment.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ jobs:
106106
runs-on: ubuntu-latest
107107
108108
steps:
109-
- uses: actions/checkout@v3
110-
- uses: actions/setup-node@v3
109+
- uses: actions/checkout@v4
110+
- uses: actions/setup-node@v4
111111
with:
112112
node-version: 16
113113
- name: npm install and build webpack
114114
run: |
115115
npm install
116116
npm run build
117-
- uses: actions/upload-artifact@v3
117+
- uses: actions/upload-artifact@v4
118118
with:
119119
name: webpack artifacts
120120
path: public/
@@ -125,31 +125,31 @@ jobs:
125125
name: Build image and store in GitHub Container Registry
126126
steps:
127127
- name: Checkout
128-
uses: actions/checkout@v3
128+
uses: actions/checkout@v4
129129
130130
- name: Download built artifact
131-
uses: actions/download-artifact@v3
131+
uses: actions/download-artifact@v4
132132
with:
133133
name: webpack artifacts
134134
path: public
135135
136136
- name: Log in to GHCR
137-
uses: docker/login-action@v2
137+
uses: docker/login-action@v3
138138
with:
139139
registry: ${{ env.IMAGE_REGISTRY_URL }}
140140
username: ${{ github.actor }}
141141
password: ${{ secrets.GITHUB_TOKEN }}
142142
143143
- name: Extract metadata (tags, labels) for Docker
144144
id: meta
145-
uses: docker/metadata-action@v4
145+
uses: docker/metadata-action@v5
146146
with:
147147
images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}
148148
tags: |
149149
type=sha,format=long,prefix=
150150
151151
- name: Build and push Docker image
152-
uses: docker/build-push-action@v3
152+
uses: docker/build-push-action@v5
153153
with:
154154
context: .
155155
push: true
@@ -162,7 +162,7 @@ jobs:
162162
name: Deploy app container to Azure
163163
steps:
164164
- name: "Login via Azure CLI"
165-
uses: azure/login@v1
165+
uses: azure/login@v2
166166
with:
167167
creds: ${{ secrets.AZURE_CREDENTIALS }}
168168
@@ -173,13 +173,13 @@ jobs:
173173
password: ${{ secrets.GITHUB_TOKEN }}
174174
175175
- name: Deploy web app container
176-
uses: azure/webapps-deploy@v2
176+
uses: azure/webapps-deploy@v3
177177
with:
178178
app-name: ${{env.AZURE_WEBAPP_NAME}}
179179
images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}:${{ github.sha }}
180180
181181
- name: Azure logout via Azure CLI
182-
uses: azure/CLI@v1
182+
uses: azure/CLI@v2
183183
with:
184184
inlineScript: |
185185
az logout

.github/steps/3-spinup-environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ jobs:
5959
if: contains(github.event.pull_request.labels.*.name, 'spin up environment')
6060
steps:
6161
- name: Checkout repository
62-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
6363

6464
- name: Azure login
65-
uses: azure/login@v1
65+
uses: azure/login@v2
6666
with:
6767
creds: ${{ secrets.AZURE_CREDENTIALS }}
6868

@@ -93,10 +93,10 @@ jobs:
9393

9494
steps:
9595
- name: Checkout repository
96-
uses: actions/checkout@v3
96+
uses: actions/checkout@v4
9797

9898
- name: Azure login
99-
uses: azure/login@v1
99+
uses: azure/login@v2
100100
with:
101101
creds: ${{ secrets.AZURE_CREDENTIALS }}
102102

.github/steps/5-deploy-to-prod-environment.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
runs-on: ubuntu-latest
4343

4444
steps:
45-
- uses: actions/checkout@v3
46-
- uses: actions/setup-node@v3
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-node@v4
4747
with:
4848
node-version: 16
4949
- name: npm install and build webpack
5050
run: |
5151
npm install
5252
npm run build
53-
- uses: actions/upload-artifact@v3
53+
- uses: actions/upload-artifact@v4
5454
with:
5555
name: webpack artifacts
5656
path: public/
@@ -61,31 +61,31 @@ jobs:
6161
name: Build image and store in GitHub Container Registry
6262
steps:
6363
- name: Checkout
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565

6666
- name: Download built artifact
67-
uses: actions/download-artifact@v3
67+
uses: actions/download-artifact@v4
6868
with:
6969
name: webpack artifacts
7070
path: public
7171

7272
- name: Log in to GHCR
73-
uses: docker/login-action@v2
73+
uses: docker/login-action@v3
7474
with:
7575
registry: ${{ env.IMAGE_REGISTRY_URL }}
7676
username: ${{ github.actor }}
7777
password: ${{ secrets.GITHUB_TOKEN }}
7878

7979
- name: Extract metadata (tags, labels) for Docker
8080
id: meta
81-
uses: docker/metadata-action@v4
81+
uses: docker/metadata-action@v5
8282
with:
8383
images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}
8484
tags: |
8585
type=sha,format=long,prefix=
8686
8787
- name: Build and push Docker image
88-
uses: docker/build-push-action@v3
88+
uses: docker/build-push-action@v5
8989
with:
9090
context: .
9191
push: true
@@ -98,7 +98,7 @@ jobs:
9898
name: Deploy app container to Azure
9999
steps:
100100
- name: "Login via Azure CLI"
101-
uses: azure/login@v1
101+
uses: azure/login@v2
102102
with:
103103
creds: ${{ secrets.AZURE_CREDENTIALS }}
104104

@@ -109,13 +109,13 @@ jobs:
109109
password: ${{ secrets.GITHUB_TOKEN }}
110110

111111
- name: Deploy web app container
112-
uses: azure/webapps-deploy@v2
112+
uses: azure/webapps-deploy@v3
113113
with:
114114
app-name: ${{env.AZURE_WEBAPP_NAME}}
115115
images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}:${{github.sha}}
116116

117117
- name: Azure logout via Azure CLI
118-
uses: azure/CLI@v1
118+
uses: azure/CLI@v2
119119
with:
120120
inlineScript: |
121121
az logout

0 commit comments

Comments
 (0)