Skip to content

Commit

Permalink
Merge pull request vitrivr#142 from vitrivr/dockerhub
Browse files Browse the repository at this point in the history
release automation: push docker image and add assets
  • Loading branch information
silvanheller committed Sep 23, 2020
2 parents 87ace9c + d427d0c commit f4e89e1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Docker image and jars
on:
release:
types: [published]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: true
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: vitrivr/cineast
tags: latest
tag_with_ref: true
- name: Extract jars from image
run: |
docker pull vitrivr/cineast:latest
docker create --name cineast vitrivr/cineast
docker cp cineast:/opt/cineast/cineast-cli.jar .
docker cp cineast:/opt/cineast/cineast-api.jar .
docker container prune -f
- name: Upload release assets
uses: AButler/upload-release-assets@v2.0
with:
files: 'cineast-*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f4e89e1

Please sign in to comment.