-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.11 KB
/
ci.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
name: Build docker files
on:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Getting image tag
uses: actions/github-script@v6
id: get_image_tag
with:
result-encoding: string
script: |
return context.payload.ref.replace(/.*\//, '');
- name: Build docker image only
run: |
# login to ghcr.io
docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
# build with full metadata
docker build \
--label "org.opencontainers.image.source=https://github.com/${GITHUB_REPOSITORY}" \
--label "org.opencontainers.image.description=Deposit payment example dockerized app" \
--label "org.opencontainers.image.licenses=MIT" \
-t ghcr.io/golemfactory/deposit_example:${{ steps.get_image_tag.outputs.result }} \
--build-arg BACKEND_URL=https://deposit.dev.golem.network \
.