File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-22.04
11
+ runs-on : ubuntu-latest
12
12
steps :
13
13
- name : checkout
14
- uses : actions/checkout@v2.0.0
14
+ uses : actions/checkout@v3
15
15
16
- - name : setup .net core
17
- uses : actions/setup-dotnet@v1.7.2
16
+ - name : Setup dotnet
17
+ uses : actions/setup-dotnet@v3
18
18
with :
19
- dotnet-version : 6.0.100
19
+ dotnet-version : ' 8.* '
20
20
21
21
- name : build
22
22
run : dotnet build
Original file line number Diff line number Diff line change 22
22
23
23
jobs :
24
24
push_to_registry :
25
- runs-on : ubuntu-22.04
25
+ runs-on : ubuntu-latest
26
26
if : ${{ github.event.workflow_run.conclusion != 'failure' }}
27
27
steps :
28
28
# Checkout latest or specific tag
29
29
- name : checkout
30
30
if : ${{ github.event.inputs.version == '' || github.event.inputs.version == 'latest' }}
31
- uses : actions/checkout@v2
31
+ uses : actions/checkout@v3
32
32
- name : checkout tag
33
33
if : ${{ github.event.inputs.version != '' && github.event.inputs.version != 'latest' }}
34
- uses : actions/checkout@v2
34
+ uses : actions/checkout@v3
35
35
with :
36
36
ref : refs/tags/${{ github.event.inputs.version }}
37
37
@@ -51,15 +51,15 @@ jobs:
51
51
52
52
# Authenticate, build and push to GitHub Container Registry (ghcr.io)
53
53
- name : Login to GitHub Container Registry
54
- uses : docker/login-action@v1
54
+ uses : docker/login-action@v3
55
55
with :
56
56
registry : ghcr.io
57
57
username : ${{ github.repository_owner }}
58
58
password : ${{ secrets.GITHUB_TOKEN }}
59
59
60
60
# Build and push new docker image, skip for manual redeploy other than 'latest'
61
61
- name : Build and push Docker images
62
- uses : docker/build-push-action@v2.2.2
62
+ uses : docker/build-push-action@v6
63
63
if : ${{ github.event.inputs.version == '' || github.event.inputs.version == 'latest' }}
64
64
with :
65
65
file : Dockerfile
You can’t perform that action at this time.
0 commit comments