-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (48 loc) · 1.59 KB
/
docker.yml
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
name: Publish Docker images
on:
release:
types: [published]
jobs:
push_fullnode_to_registry:
name: Push fullnode Docker image to fly.io
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: 🔑 Fly Registry Auth
uses: docker/login-action@v1
with:
registry: registry.fly.io
username: x
password: ${{ secrets.FLY_API_TOKEN }}
- name: 🐳 Docker build (fullnode)
uses: docker/build-push-action@v2
with:
context: .
file: ./fullnode.Dockerfile
push: true
tags: registry.fly.io/cartezcash-fullnode:latest
build-args: |
COMMIT_SHA=${{ github.sha }}
push_cartesi_node_to_registry:
name: Push cartesi node Docker image to fly.io
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: 🔑 Fly Registry Auth
uses: docker/login-action@v1
with:
registry: registry.fly.io
username: x
password: ${{ secrets.FLY_API_TOKEN }}
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install Sunodo and build
run: |
npm install -g @sunodo/cli
IMAGE_TAG=$(sunodo deploy build --platform linux/amd64 | grep "Application node Docker image" | awk '{print $NF}')
docker push $IMAGE_TAG:registry.fly.io/cartezcash:latest