Skip to content

[CI/CD] Add reusable workflows #3

[CI/CD] Add reusable workflows

[CI/CD] Add reusable workflows #3

Workflow file for this run

name: Build and Test Gradle project
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/gradle-build-and-test.yml@main
build-and-push-docker:
needs: build-and-test
uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-build-and-push.yml@main

Check failure on line 15 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build and Test Gradle project

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 15, Col: 11): Input build_artifact_name is required, but not provided while calling. .github/workflows/ci.yml (Line: 15, Col: 11): Input build_artifact_path is required, but not provided while calling.
with:
docker_image_tag: 'registry.digitalocean.com/do-ase-registry/user-service'
secrets:
DIGITALOCEAN_ACCESS_TOKEN: "${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}"
restart-application:
needs: build-and-push-docker
uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-compose-restart.yml@main
secrets:
DROPLET_IP_ADDRESS: "${{ secrets.DROPLET_IP_ADDRESS }}"
DROPLET_SSH_KEY: "${{ secrets.DROPLET_SSH_KEY }}"