-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (59 loc) · 1.94 KB
/
release.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
name: Release
on:
push:
tags: ["*"]
jobs:
release-to-nexus:
name: Release Jars
runs-on: ubuntu-latest
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_CLIENT_ID }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET_KEY: ${{ secrets.PGP_SECRET_KEY }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: coursier/setup-action@v1
with:
jvm: 'temurin:1.17.0.3'
- uses: coursier/cache-action@v6
- run: echo $PGP_SECRET_KEY | base64 --decode | gpg --batch --import
- run: sbt '+publishSigned ; sonatypeBundleRelease'
build-images:
name: Build and Push Images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: coursier/setup-action@v1
with:
jvm: 'temurin:1.17.0.3'
- uses: coursier/cache-action@v6
- run: sbt docker:publishLocal
- run: docker tag advancedtelematic/tuf-reposerver:$GITHUB_SHA uptane/tuf-reposerver:$GITHUB_SHA
- run: docker tag advancedtelematic/tuf-keyserver:$GITHUB_SHA uptane/tuf-keyserver:$GITHUB_SHA
- run: docker push uptane/tuf-reposerver:$GITHUB_SHA
- run: docker push uptane/tuf-keyserver:$GITHUB_SHA
release-uptane-sign:
name: Release uptane-sign
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: coursier/setup-action@v1
with:
jvm: 'temurin:1.17.0.3'
- uses: coursier/cache-action@v6
- run: sbt cli/packageZipTarball
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cli/target/universal/*.tgz