forked from hubble-exchange/hubblenet
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.33 KB
/
ci-oonodz-aylin.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
name: Build and Push aylin image
on:
push:
branches:
- aylin
defaults:
run:
shell: bash
jobs:
build_oonodz_fuji_image_aylin:
name: Build Docker Image
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Current Tag
id: get_tag
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags)
- name: Login to Docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build Dockerfile and Push it
run: |
TAG_FUJI="fuji-"
TAG_END=$GITHUB_SHA
if [ -n "$GITHUB_TAG" ]; then
TAG_END=$GITHUB_TAG
fi
export BUILD_IMAGE_ID="${{ vars.AVALANCHE_VERSION_DEV }}-${TAG_FUJI}${TAG_END}"
echo "COPY --from=builder /build/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ /root/.avalanchego/plugins/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ" >> Dockerfile
./scripts/build_image.sh
env:
CURRENT_BRANCH: ${{ github.head_ref || github.ref_name }}
PUSH_DOCKER_IMAGE: true
DOCKERHUB_REPO: logisticx/ava
GITHUB_TAG: ${{ steps.get_tag.outputs.tag }}
GITHUB_SHA: ${{ github.sha }}