Skip to content

Commit

Permalink
ci: add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Nov 22, 2023
1 parent e45a33a commit 972e615
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Workflow (docker)

on:
push:
branches:
- ci/docker

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Run make ci
run: |
make ci
26 changes: 14 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
all: build ci publish

build: docker-build
ci: lint format unit-tests coverage functional-tests ci-clean
ci: docker-build lint format unit-tests coverage functional-tests ci-clean
publish: docker-publish

lint:
bash scripts/lint.sh
DOCKER_RUN = docker run --rm -i --entrypoint bash webofmars/cicdparadox:standard-develop

format:
bash scripts/format.sh
lint: docker-build-dev
${DOCKER_RUN} scripts/lint.sh

pre-commit:
bash scripts/pre-commit.sh
format: docker-build-dev
${DOCKER_RUN} scripts/format.sh

unit-tests:
bash scripts/unit-tests.sh
pre-commit: docker-build-dev
${DOCKER_RUN} scripts/pre-commit.sh

coverage:
bash scripts/coverage.sh
unit-tests: docker-build-dev
${DOCKER_RUN} scripts/unit-tests.sh

functional-tests:
coverage: docker-build-dev
${DOCKER_RUN} scripts/coverage.sh

functional-tests: docker-build-prod
bash scripts/functional-tests.sh

ci-clean:
Expand Down

0 comments on commit 972e615

Please sign in to comment.