Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release automation: push docker image and add assets #142

Merged
merged 2 commits into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}