Skip to content

Commit

Permalink
move to prosnet workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 23, 2023
1 parent 1bc27fb commit 0b03443
Show file tree
Hide file tree
Showing 26 changed files with 3,249 additions and 130 deletions.
55 changes: 2 additions & 53 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,8 @@ on:
push:

jobs:
setup_workflow_env:
runs-on: ubuntu-latest
outputs:
image_tagged: apis-rdf-devops-new
registry_root: ghcr.io/${{ github.repository }}/
APP_ROOT: "/"
steps:
- run: "/bin/true"
build_and_push_to_registry:
runs-on: ubuntu-latest
needs: [setup_workflow_env]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_tagged }}/${{ github.ref_name }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
type=raw,value={{sha}}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
push: true

deploy:
needs: [setup_workflow_env, build_and_push_to_registry]
uses: acdh-oeaw/gl-autodevops-minimal-port/.github/workflows/deploy-cluster-2.yml@main
uses: acdh-oeaw/prosnet-workflows/.github/workflows/deploy-apis-instance.yml@birger/apis-startup
secrets: inherit
with:
DOCKER_TAG: ${{ needs.setup_workflow_env.outputs.registry_root }}${{ needs.setup_workflow_env.outputs.image_tagged }}/${{ github.ref_name }}
APP_ROOT: ${{ needs.setup_workflow_env.outputs.APP_ROOT }}
APP_NAME: sicprod-dev-test
SERVICE_ID: "21704"
PUBLIC_URL: "https://sicprod-test.acdh-ch-dev.oeaw.ac.at"
environment: "SicProD Test"
workflows-branch: birger/apis-startup
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "apis-ontologies"]
path = apis-ontologies
url = https://github.com/acdh-oeaw/apis-ontologies
29 changes: 0 additions & 29 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion apis-ontologies
Submodule apis-ontologies deleted from e6b45e
Empty file added apis_ontology/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions apis_ontology/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class ApisOntologyConfig(AppConfig):
name = 'apis_ontology'
Loading

0 comments on commit 0b03443

Please sign in to comment.