Skip to content

Feature/2 enable GitHub action for cicd #2

Feature/2 enable GitHub action for cicd

Feature/2 enable GitHub action for cicd #2

Workflow file for this run

name: Docker
on:
pull_request:
branches: [ master, development ]
jobs:
docker-build:

Check failure on line 8 in .github/workflows/dockerbuild.yml

View workflow run for this annotation

GitHub Actions / Docker

Invalid workflow file

The workflow is not valid. .github/workflows/dockerbuild.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
needs: compile
name: Build docker image
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Make repo safe
run: git config --global --add safe.directory /__w/SOARCA/SOARCA
- name: Build image
run: |
export VERSION=$(git describe --tags --dirty)
echo $VERSION
docker build --build-arg VERSION -t $CI_REGISTRY_IMAGE:$VERSION