-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.56 KB
/
tzwitter-frontend-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
name: Tzwitter - frontend docker
on:
push:
branches:
- "infra-main"
paths:
- "08_tzwitter_app/app/**"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sed on config.ts # (yep thats bad)
run: |
set -x
sed -i '/TEZOS_RPC/d' 08_tzwitter_app/app/src/config.ts
sed -i '/ROLLUP_RPC/d' 08_tzwitter_app/app/src/config.ts
echo "export const TEZOS_RPC = 'https://rpc.ghostnet.teztnets.xyz';" >> 08_tzwitter_app/app/src/config.ts
echo "export const ROLLUP_RPC = 'https://tzwitter-rollup.gcp.marigold.dev';" >> 08_tzwitter_app/app/src/config.ts
cat 08_tzwitter_app/app/src/config.ts
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./08_tzwitter_app/app/
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: |
ghcr.io/marigold-dev/tzwitter-frontend:latest
ghcr.io/marigold-dev/tzwitter-frontend:${{ github.sha }}
build-args: |
TEZOS_RPC=${{ env.TEZOS_RPC }}
ROLLUP_RPC=${{ env.ROLLUP_RPC }}