-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 976 Bytes
/
build.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
name: Build
on:
workflow_dispatch:
push:
branches:
- develop
- devnet
- 'build/**'
jobs:
docker-build-push:
name: Build and push
runs-on: build-dedicated
outputs:
repository: ${{ steps.build.outputs.repository }}
image_tag: ${{ steps.build.outputs.image_tag }}
steps:
- uses: actions/checkout@v2
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASS }}
registry: ${{ secrets.REGISTRY_HOST }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
ssh: |
default=${{ env.SSH_AUTH_SOCK }}
push: true
tags: ${{ secrets.REGISTRY_HOST }}/chui/chui-solana:${{github.sha}}