Skip to content

Commit bd5c37f

Browse files
2 parents 0270919 + b1ec8df commit bd5c37f

18 files changed

+131
-64
lines changed

.dockerignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
3+
**/.DS_Store
4+
**/__pycache__
5+
**/.venv
6+
**/.classpath
7+
**/.dockerignore
8+
**/.env
9+
**/.git
10+
**/.gitignore
11+
**/.project
12+
**/.settings
13+
**/.toolstarget
14+
**/.vs
15+
**/.vscode
16+
**/*.*proj.user
17+
**/*.dbmdl
18+
**/*.jfm
19+
**/bin
20+
**/charts
21+
**/docker-compose*
22+
**/compose*
23+
**/Dockerfile*
24+
**/node_modules
25+
**/npm-debug.log
26+
**/obj
27+
**/secrets.dev.yaml
28+
**/values.dev.yaml
29+
LICENSE
30+
README.md

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ indent_style = tab
1414

1515
[*.md]
1616
trim_trailing_whitespace = false
17+
18+
[*.py]
19+
indent_size = 4

.github/workflows/docker-image.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
name: Create and publish a Docker image
3+
4+
# Configures this workflow to run every time a change is pushed to the branch called `release`.
5+
on:
6+
release:
7+
types: [published]
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}
12+
13+
jobs:
14+
build-and-push-image:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Log in to the Container registry
25+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
26+
with:
27+
registry: ${{ env.REGISTRY }}
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Extract metadata (tags, labels) for Docker
32+
id: meta
33+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
34+
with:
35+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36+
37+
- name: Build and push Docker image
38+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
39+
with:
40+
context: .
41+
push: true
42+
tags: ${{ steps.meta.outputs.tags }}
43+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ cache/
22
logs/
33
.env
44
src/__pycache__/*
5-
data/*
5+
.idea/

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/sesame-taiga_crawler.iml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)