-
Notifications
You must be signed in to change notification settings - Fork 302
44 lines (36 loc) · 1.12 KB
/
build-demo.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
name: Build demo image
on:
push:
branches: [ demo ]
# jobs with same concurrency label will be put in pending state
concurrency: demo-ci
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
# docusaurus checks .git for history, so we need all commits
fetch-depth: 0
# For gha cache
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASS }}
registry: ${{ secrets.REGISTRY_URL }}
- uses: docker/build-push-action@v3
with:
context: .
file: "deployment/Docker/Dockerfile"
# https://github.com/docker/buildx/issues/1533
provenance: false
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ secrets.REGISTRY_URL }}/nwt/ton_docs:demo
push: true
- name: Trigger deploy
run: curl -s "${{ secrets.CD_URL_DEMO }}"