forked from vitrivr/cineast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request vitrivr#142 from vitrivr/dockerhub
release automation: push docker image and add assets
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} | ||
|