forked from advancedtelematic/ota-tuf
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 972 Bytes
/
merge.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
name: unit-tests
on:
push:
branches:
- fio-changes
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: doanac
password: ${{ secrets.GH_CONTAINER_REG_TOK }}
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 8
- uses: actions/checkout@v2
with:
fetch-depth: 0 # So we can run git-describe below
- run: sbt reposerver/docker:publishLocal
- run: sbt keyserver/docker:publishLocal
- run: |
tag=$(git describe)
dst="ghcr.io/${GITHUB_REPOSITORY_OWNER}/tuf-reposerver:${tag}"
docker tag advancedtelematic/tuf-reposerver:latest $dst
docker push $dst
dst="ghcr.io/${GITHUB_REPOSITORY_OWNER}/tuf-keyserver:${tag}"
docker tag advancedtelematic/tuf-keyserver:latest $dst
docker push $dst