-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (44 loc) · 1.77 KB
/
standalone.production.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
on:
release:
types:
- created
env:
REGISTRY: ghcr.io
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
name: Build Conduit standalone
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set env
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/^v//')" >> $GITHUB_ENV
- name: Build conduit base
run: |
docker build --no-cache -t conduit-base:latest -f ./Dockerfile .
- name: Build standalone
run: |
docker build -t ghcr.io/conduitplatform/conduit-standalone:latest -f ./standalone.Dockerfile .
- name: Push image
run: |
docker tag ghcr.io/conduitplatform/conduit-standalone:latest ghcr.io/conduitplatform/conduit-standalone:${{ env.RELEASE_VERSION }}
docker tag ghcr.io/conduitplatform/conduit-standalone:latest conduitplatform/conduit-standalone:latest
docker tag ghcr.io/conduitplatform/conduit-standalone:latest conduitplatform/conduit-standalone:${{ env.RELEASE_VERSION }}
docker push ghcr.io/conduitplatform/conduit-standalone:latest
docker push ghcr.io/conduitplatform/conduit-standalone:${{ env.RELEASE_VERSION }}
docker push conduitplatform/conduit-standalone:latest
docker push conduitplatform/conduit-standalone:${{ env.RELEASE_VERSION }}