-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (30 loc) · 1.03 KB
/
monerod.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
name: Monerod
on:
push:
branches: [ main ]
paths:
- 'monerod/Dockerfile'
- 'monerod/SHASUM'
- 'monerod/VERSION'
jobs:
monerod:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup VERSION
run: |
export VERSION=$(cat monerod/VERSION)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Docker build
run: docker build --build-arg VRS=v${VERSION} -f $GITHUB_WORKSPACE/monerod/Dockerfile -t ghcr.io/farcaster-project/containers/monerod:latest -t ghcr.io/farcaster-project/containers/monerod:${VERSION} $GITHUB_WORKSPACE/monerod
- name: Docker push to GitHub Packages
run: |
docker push ghcr.io/farcaster-project/containers/monerod:$VERSION
docker push ghcr.io/farcaster-project/containers/monerod:latest