Merge branch 'merge-upstream' into 'master' #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |