Skip to content

Commit 92c0cdc

Browse files
mnitchevMichal Voitiulevic
authored andcommitted
Add sha256sums to release (#9)
* Add sha256sums to release * rename workdir * remove kind versions from build
1 parent aee398c commit 92c0cdc

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ permissions:
1010
packages: write
1111
contents: read
1212

13-
env:
14-
KIND_VERSION: 1.32
15-
KIND_MINOR: 2
16-
1713
jobs:
1814
build-and-publish-kind-image:
1915
permissions:
@@ -29,23 +25,25 @@ jobs:
2925
docker buildx ls --no-trunc
3026
3127
- name: Build amd64 with Docker
32-
run: docker buildx build --builder multi-arch --platform linux/amd64 --build-arg VERSION=$KIND_VERSION --build-arg MINOR=$KIND_MINOR -f release/Dockerfile --output amd64-bins .
28+
run: docker buildx build --builder multi-arch --platform linux/amd64 -f release/Dockerfile --output amd64-bins .
3329

3430
- name: Build arm64 with Docker
35-
run: docker buildx build --builder multi-arch --platform linux/arm64 --build-arg VERSION=$KIND_VERSION --build-arg MINOR=$KIND_MINOR -f release/Dockerfile --output arm64-bins .
31+
run: docker buildx build --builder multi-arch --platform linux/arm64 -f release/Dockerfile --output arm64-bins .
3632

3733
- name: List built binaries
3834
run: ls -lah amd64-bins arm64-bins
3935

4036
- name: Create tar
4137
run: |
42-
tar -czf criu-${{ github.ref_name}}-kind-v${KIND_VERSION}.${KIND_MINOR}-amd64.tar.gz -C amd64-bins criu
43-
tar -czf criu-${{ github.ref_name}}-kind-v${KIND_VERSION}.${KIND_MINOR}-arm64.tar.gz -C arm64-bins criu
38+
tar -czf criu-${{ github.ref_name}}-linux-amd64.tar.gz -C amd64-bins criu
39+
tar -czf criu-${{ github.ref_name}}-linux-arm64.tar.gz -C arm64-bins criu
40+
sha256sum criu-${{ github.ref_name}}-linux-amd64.tar.gz >> SHA256SUMS
41+
sha256sum criu-${{ github.ref_name}}-linux-arm64.tar.gz >> SHA256SUMS
4442
4543
- name: Upload Release Asset
4644
uses: ncipollo/release-action@v1
4745
with:
48-
artifacts: "criu-${{ github.ref_name}}-kind-v${{ env.KIND_VERSION }}.${{ env.KIND_MINOR }}-amd64.tar.gz,criu-${{ github.ref_name}}-kind-v${{ env.KIND_VERSION }}.${{ env.KIND_MINOR }}-arm64.tar.gz"
46+
artifacts: "criu-${{ github.ref_name}}-linux-amd64.tar.gz,criu-${{ github.ref_name}}-linux-arm64.tar.gz,SHA256SUMS"
4947
env:
5048
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5149

release/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
2626
uuid-dev \
2727
python3-yaml
2828

29-
COPY . /criu
30-
WORKDIR /criu
29+
COPY . /work
30+
WORKDIR /work
3131
RUN make -j $(nproc) criu
3232

3333
FROM scratch
34-
COPY --from=build /criu/criu/criu .
34+
COPY --from=build /work/criu/criu .

0 commit comments

Comments
 (0)