Skip to content

Commit 8ca0880

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Github Actions: Docker flow added.
1 parent 99ca03d commit 8ca0880

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Image CI
2+
3+
4+
on:
5+
push:
6+
branches: [ main, develop, feature/* ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
permissions: read-all
11+
12+
jobs:
13+
14+
build:
15+
name: Build & Test in Docker
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Build the Docker image
22+
run: make compose/rebuild
23+
- name: Run test in Docker image
24+
run: make compose/run
25+
- name: Tag Docker image
26+
run: docker tag algorithm-exercises-csharp:latest algorithm-exercises-csharp:${{ github.sha }}
27+

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM node:20.2.0-alpine3.16 AS lint
88
ENV WORKDIR=/app
99
WORKDIR ${WORKDIR}
1010

11-
COPY ./src ${WORKDIR}/src
11+
COPY ./docs ${WORKDIR}/docs
1212
RUN apk add --update --no-cache make
1313
RUN npm install -g --ignore-scripts markdownlint-cli
1414

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
profiles: ["testing"]
1313

1414
algorithm-exercises-csharp-mdlint:
15-
image: algorithm-exercises-ts:mdlint
15+
image: algorithm-exercises-csharp:mdlint
1616
build:
1717
context: .
1818
target: lint

docs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)