Skip to content

Commit db42584

Browse files
committed
Initial commit
- Add Dockerfile - Add Makefile - Add .github/workflows/test.yaml - Add .editorconfig
1 parent f992735 commit db42584

File tree

5 files changed

+69
-0
lines changed

5 files changed

+69
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[Makefile]
12+
indent_style = tab
13+
indent_size = 4
14+

.github/workflows/test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- README.md
8+
9+
pull_request:
10+
branches:
11+
- main
12+
types:
13+
- opened
14+
- synchronize
15+
- reopened
16+
- ready_for_review
17+
paths-ignore:
18+
- README.md
19+
20+
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
container:
24+
image: jonasjso/adventofcode2020
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Print versions
28+
run: ./scripts/print-versions.sh

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ubuntu:latest
2+
LABEL github=https://github.com/Arxcis/adventofcode2020
3+
4+
# Apt install all the things
5+
RUN apt update && apt install -yqq\
6+
python3\
7+
python-is-python3\
8+
;
9+

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
test:
2+
echo "hello test"
3+
4+
dockerbuild: Dockerfile
5+
docker build . --tag jonasjso/adventofcode2020
6+
7+
dockerpush:
8+
docker push jonasjso/adventofcode2020:latest
9+
10+
11+
.PHONY: dockerbuild dockerpush test
12+

scripts/print-versions.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
echo ""
3+
uname -a
4+
5+
echo ""
6+
python --version

0 commit comments

Comments
 (0)