Skip to content

Commit

Permalink
Merge branch 'release/0.4.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
usommerl committed Jan 3, 2021
2 parents a28072b + bf64bed commit f2540f8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 60 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/ci_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:
TOKEN: ${{ secrets.PAT_GHCR }}
USERNAME: ${{ github.repository_owner }}
run: echo $TOKEN | docker login ghcr.io -u $USERNAME --password-stdin
- name: Create docker image
run: sbt docker
- name: Publish docker image to ghcr.io
run: sbt dockerPush
- name: Tag image for gcr.io
- name: Create and publish a docker image with a UPX compressed executable
run: export UPX_COMPRESSION='--best'; sbt ';docker;dockerPush'
- name: Create and publish docker image without compression
run: sbt ';docker;dockerPush'
- name: Remove image with UPX compressed executable
run: docker rmi $(docker images -q 'ghcr.io/usommerl/graalnative4s*upx*')
- name: Tag remaining image for gcr.io
run: |
export IMAGE_GHCR=$(docker images ghcr.io/usommerl/graalnative4s --format "{{.Repository}}:{{.Tag}}")
export IMAGE_GCR=$(echo $IMAGE_GHCR | sed 's/ghcr.io/eu.gcr.io/')
Expand All @@ -49,3 +51,19 @@ jobs:
region: europe-west1
env: .github/workflows/cloud_run_env_vars
service key: ${{ secrets.GCP_SA_KEY }}
- name: Generate release changelog
id: generate-release-changelog
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: "true"
stripHeaders: "true"
stripGeneratorNotice: "true"
- name: Create GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.generate-release-changelog.outputs.changelog }}
29 changes: 0 additions & 29 deletions .github/workflows/release.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/upx.yaml

This file was deleted.

0 comments on commit f2540f8

Please sign in to comment.