Skip to content

Commit daa5b1d

Browse files
committed
[CONFIG] Github Actions
1 parent 7412773 commit daa5b1d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
14+
# Maintain dependencies for npm
15+
- package-ecosystem: "npm"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
20+
# Maintain dependencies for Docker
21+
- package-ecosystem: "docker"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"

.github/workflows/docker-image.yml

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

0 commit comments

Comments
 (0)