This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.74 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build image
on:
push:
paths:
- "version"
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GHCR_TOKEN }}
- name: Get version
id: getVersion
run: |
echo ::set-output name=version::`cat version`
- name: Download lbrynet
run: |
wget -nv https://github.com/lbryio/lbry-sdk/releases/download/${{ steps.getVersion.outputs.version }}/lbrynet-linux.zip
- name: Unzip
uses: montudor/[email protected]
with:
args: unzip lbrynet-linux.zip
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Package
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and Push container image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/laysi/docker-lbrynet:${{ steps.getVersion.outputs.version }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.revision=${{ steps.getVersion.outputs.version }}
- name: Build and Push container image(latest)
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/laysi/docker-lbrynet:latest
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.revision=latest