Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 9908377

Browse files
author
Paulo Gomes
committed
Update GH actions
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 842e24f commit 9908377

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: macos-11
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Test build script for darwin-amd64 - libgit2-all
2727
run: |
2828
make dev-test
@@ -46,20 +46,20 @@ jobs:
4646
- 5000:5000
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v2
49+
uses: actions/checkout@v3
5050
- name: Unshallow
5151
run: git fetch --prune --unshallow
5252
- name: Setup Cosign
5353
uses: sigstore/cosign-installer@main
5454
- name: Set up QEMU
5555
id: qemu
56-
uses: docker/setup-qemu-action@v1
56+
uses: docker/setup-qemu-action@v2
5757
with:
5858
image: tonistiigi/binfmt:latest
5959
platforms: ${{ env.PLATFORMS }}
6060
- name: Set up Docker Buildx
6161
id: buildx
62-
uses: docker/setup-buildx-action@v1
62+
uses: docker/setup-buildx-action@v2
6363
with:
6464
config-inline: |
6565
[worker.oci]
@@ -73,7 +73,7 @@ jobs:
7373
echo "Flags: ${{ steps.buildx.outputs.flags }}"
7474
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
7575
- name: Cache Docker layers
76-
uses: actions/cache@v2
76+
uses: actions/cache@v3
7777
id: cache
7878
with:
7979
path: /tmp/.buildx-cache
@@ -83,7 +83,7 @@ jobs:
8383
- run: cat ./hack/static.sh
8484
- name: Build candidate image - libgit2 compiled with libssh2 and openssl
8585
id: build_candidate_libgit2_all
86-
uses: docker/build-push-action@v2
86+
uses: docker/build-push-action@v3
8787
with:
8888
context: .
8989
file: Dockerfile
@@ -94,7 +94,7 @@ jobs:
9494
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
9595
- name: Build candidate image - libgit2 only
9696
id: build_candidate_libgti2_only
97-
uses: docker/build-push-action@v2
97+
uses: docker/build-push-action@v3
9898
with:
9999
context: .
100100
file: Dockerfile.libgit2-only
@@ -121,7 +121,7 @@ jobs:
121121
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
122122
- name: Login to GHCR
123123
if: github.event_name != 'pull_request'
124-
uses: docker/login-action@v1
124+
uses: docker/login-action@v2
125125
with:
126126
registry: ghcr.io
127127
username: ${{ github.repository_owner }}
@@ -142,7 +142,7 @@ jobs:
142142
- name: Release candidate image - golang-with-libgit2-all
143143
id: release_candidate_libgit2_all
144144
if: github.event_name != 'pull_request'
145-
uses: docker/build-push-action@v2
145+
uses: docker/build-push-action@v3
146146
with:
147147
context: .
148148
file: Dockerfile
@@ -178,7 +178,7 @@ jobs:
178178
- name: Release candidate image - golang-with-libgit2-only
179179
id: release_candidate_libgit2_only
180180
if: github.event_name != 'pull_request'
181-
uses: docker/build-push-action@v2
181+
uses: docker/build-push-action@v3
182182
with:
183183
context: .
184184
file: Dockerfile.libgit2-only

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2727
- name: Build static libraries - libgit2 compiled with libssh2 and openssl
2828
run: |
2929
TARGET_DIR=${GITHUB_WORKSPACE}/build/libgit2-linux \
@@ -71,7 +71,7 @@ jobs:
7171
runs-on: macos-11
7272
steps:
7373
- name: Checkout
74-
uses: actions/checkout@v2
74+
uses: actions/checkout@v3
7575
- name: Build universal static libraries for Darwin - libgit2 compiled with libssh2 and openssl
7676
run: |
7777
TARGET_DIR=${GITHUB_WORKSPACE}/build/libgit2-darwin-amd64 \
@@ -151,10 +151,10 @@ jobs:
151151
needs: [linux-amd64-release, darwin-release]
152152
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
153153
steps:
154-
- uses: actions/checkout@v2
154+
- uses: actions/checkout@v3
155155
with:
156156
fetch-depth: 0
157-
- uses: actions/setup-go@v2
157+
- uses: actions/setup-go@v3
158158
with:
159159
go-version: 1.17.x
160160
- name: Setup Cosign

0 commit comments

Comments
 (0)