This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (73 loc) · 2.11 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: docker
on:
push:
branches:
- 'main'
tags:
- "v*.*.*"
env:
DERO_VERSION: Release91
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ${{ secrets.HARBOR_URL }}
username: ${{ secrets.HARBOR_USER }}
password: ${{ secrets.HARBOR_PASSWORD }}
-
name: derod meta
id: derod-meta
uses: docker/metadata-action@v3
with:
images: |
${{ secrets.HARBOR_URL }}/dero/derod
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Build and push derod
uses: docker/build-push-action@v3
with:
file: Dockerfile
context: .
push: true
tags: ${{ steps.derod-meta.outputs.tags }}
labels: ${{ steps.derod-meta.outputs.labels }}
build-args: |
DERO_VERSION=${{ env.DERO_VERSION }}
-
name: dero-wallet meta
id: dero-wallet-meta
uses: docker/metadata-action@v3
with:
images: |
${{ secrets.HARBOR_URL }}/dero/dero-wallet
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Build and push dero-wallet
uses: docker/build-push-action@v3
with:
file: Dockerfile.wallet
context: .
push: true
tags: ${{ steps.dero-wallet-meta.outputs.tags }}
labels: ${{ steps.dero-wallet-meta.outputs.labels }}
build-args: |
DERO_VERSION=${{ env.DERO_VERSION }}