-
Notifications
You must be signed in to change notification settings - Fork 54
59 lines (51 loc) · 1.67 KB
/
draft-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Create and Push Docker Image
on:
push:
tags:
- '**'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: strangelove-ventures/[email protected]
with:
chain: noble
dockerfile: cosmos
build-target: make install
binaries: |
- /go/bin/nobled
draft-release:
needs: build-and-push-image
runs-on: ubuntu-latest
steps:
- name: Copy Binary
run: |
docker create -it --entrypoint sh --name amd --platform linux/amd64 ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
docker create -it --entrypoint sh --name arm --platform linux/arm64 ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
docker cp amd:/bin/nobled ./nobled_linux-amd64
docker cp arm:/bin/nobled ./nobled_linux-arm64
sha256sum ./nobled_linux-amd64 > ./nobled_sha256.txt
sha256sum ./nobled_linux-arm64 >> ./nobled_sha256.txt
- name: Draft Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
nobled_linux-amd64
nobled_linux-arm64
nobled_sha256.txt