fix: Malformed query on GraphDB (#78) #32
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
name: Build app and update Docker image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set variables | |
id: vars | |
run: | | |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
echo "docker_image=ghcr.io/netwerk-digitaal-erfgoed/dataset-knowledge-graph" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to Docker registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} | |
- name: Build and push image to registry | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: | | |
${{ steps.vars.outputs.docker_image }}:${{ steps.vars.outputs.sha_short }} | |
${{ steps.vars.outputs.docker_image }}:latest | |
- uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- name: Store DigitalOcean credentials | |
run: doctl kubernetes cluster kubeconfig save nde | |
- name: Run | |
run: | | |
kubectl delete job dataset-knowledge-graph-run --ignore-not-found | |
kubectl create job --from=cronjob/dataset-knowledge-graph dataset-knowledge-graph-run |