mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Merge pull request #4031 from deitch/update-actions
bump actions to v4 to avoid deprecation
This commit is contained in:
commit
8afecd5204
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set path
|
- name: Set path
|
||||||
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||||
@ -79,7 +79,7 @@ jobs:
|
|||||||
GOPATH: ${{runner.workspace}}
|
GOPATH: ${{runner.workspace}}
|
||||||
|
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-${{matrix.target.suffix}}
|
name: linuxkit-${{matrix.target.suffix}}
|
||||||
path: |
|
path: |
|
||||||
@ -93,14 +93,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up binfmt
|
- name: Set up binfmt
|
||||||
# Only register arm64 as we are on amd64 already. s390x is not reliable
|
# Only register arm64 as we are on amd64 already. s390x is not reliable
|
||||||
run: docker run --privileged --rm tonistiigi/binfmt --install arm64
|
run: docker run --privileged --rm tonistiigi/binfmt --install arm64
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
|
|
||||||
- name: Cache Packages
|
- name: Cache Packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
@ -160,7 +160,7 @@ jobs:
|
|||||||
shard: [1/10,2/10,3/10,4/10,5/10,6/10,7/10,8/10,9/10,10/10]
|
shard: [1/10,2/10,3/10,4/10,5/10,6/10,7/10,8/10,9/10,10/10]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Pre-Requisites
|
- name: Install Pre-Requisites
|
||||||
run: |
|
run: |
|
||||||
@ -170,7 +170,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore RTF From Cache
|
- name: Restore RTF From Cache
|
||||||
id: cache-rtf
|
id: cache-rtf
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: bin
|
path: bin
|
||||||
key: rtf-${{hashFiles('Makefile')}}
|
key: rtf-${{hashFiles('Makefile')}}
|
||||||
@ -184,7 +184,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -196,7 +196,7 @@ jobs:
|
|||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
|
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
@ -215,7 +215,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Pre-Requisites
|
- name: Install Pre-Requisites
|
||||||
run: |
|
run: |
|
||||||
@ -225,7 +225,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore RTF From Cache
|
- name: Restore RTF From Cache
|
||||||
id: cache-rtf
|
id: cache-rtf
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: bin
|
path: bin
|
||||||
key: rtf-${{hashFiles('Makefile')}}
|
key: rtf-${{hashFiles('Makefile')}}
|
||||||
@ -239,7 +239,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -251,7 +251,7 @@ jobs:
|
|||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
|
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
@ -271,7 +271,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Pre-Requisites
|
- name: Install Pre-Requisites
|
||||||
run: |
|
run: |
|
||||||
@ -281,13 +281,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore RTF From Cache
|
- name: Restore RTF From Cache
|
||||||
id: cache-rtf
|
id: cache-rtf
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: bin
|
path: bin
|
||||||
key: rtf-${{hashFiles('Makefile')}}
|
key: rtf-${{hashFiles('Makefile')}}
|
||||||
|
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
@ -303,7 +303,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -327,7 +327,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Pre-Requisites
|
- name: Install Pre-Requisites
|
||||||
run: |
|
run: |
|
||||||
@ -337,7 +337,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore RTF From Cache
|
- name: Restore RTF From Cache
|
||||||
id: cache-rtf
|
id: cache-rtf
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: bin
|
path: bin
|
||||||
key: rtf-${{hashFiles('Makefile')}}
|
key: rtf-${{hashFiles('Makefile')}}
|
||||||
@ -351,7 +351,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -363,7 +363,7 @@ jobs:
|
|||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
|
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
@ -383,7 +383,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Pre-Requisites
|
- name: Install Pre-Requisites
|
||||||
run: |
|
run: |
|
||||||
@ -393,7 +393,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Restore RTF From Cache
|
- name: Restore RTF From Cache
|
||||||
id: cache-rtf
|
id: cache-rtf
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: bin
|
path: bin
|
||||||
key: rtf-${{hashFiles('Makefile')}}
|
key: rtf-${{hashFiles('Makefile')}}
|
||||||
@ -407,7 +407,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
sudo ln -s $(pwd)/bin/rtf /usr/local/bin/rtf
|
||||||
|
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linuxkit-amd64-linux
|
name: linuxkit-amd64-linux
|
||||||
path: bin
|
path: bin
|
||||||
@ -419,7 +419,7 @@ jobs:
|
|||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
|
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
|
2
.github/workflows/package_release.yml
vendored
2
.github/workflows/package_release.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
go-version: 1.21.5
|
go-version: 1.21.5
|
||||||
id: go
|
id: go
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Ensure bin/ directory
|
- name: Ensure bin/ directory
|
||||||
run: mkdir -p bin
|
run: mkdir -p bin
|
||||||
- name: Install linuxkit
|
- name: Install linuxkit
|
||||||
|
4
.github/workflows/publish.yaml
vendored
4
.github/workflows/publish.yaml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Ensure bin/ directory
|
- name: Ensure bin/ directory
|
||||||
run: mkdir -p bin
|
run: mkdir -p bin
|
||||||
- name: Download linuxkit
|
- name: Download linuxkit
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
sudo ln -s $(pwd)/bin/${{ env.linuxkit_file }} /usr/local/bin/linuxkit
|
sudo ln -s $(pwd)/bin/${{ env.linuxkit_file }} /usr/local/bin/linuxkit
|
||||||
/usr/local/bin/linuxkit version
|
/usr/local/bin/linuxkit version
|
||||||
- name: Restore Package Cache
|
- name: Restore Package Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.linuxkit/cache/
|
path: ~/.linuxkit/cache/
|
||||||
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
key: ${{ runner.os }}-linuxkit-${{ github.sha }}
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set path
|
- name: Set path
|
||||||
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user