Skip to content

Commit aa6f88c

Browse files
author
vsilent
committed
Merge branch 'dev'
conflict fix
2 parents 0fb328e + 49c5137 commit aa6f88c

204 files changed

Lines changed: 7977 additions & 1880 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ POSTGRES_DB=stacker
77
POSTGRES_PORT=5432
88
SECURITY_KEY=SECURITY_KEY_SHOULD_BE_OF_LEN_32
99

10-
REDIS_URL=redis://127.0.0.1/
10+
REDIS_URL=redis://127.0.0.1/
11+
# SQLX_OFFLINE=true
12+
13+
# Vault Configuration
14+
VAULT_ADDRESS=http://127.0.0.1:8200
15+
VAULT_TOKEN=your_vault_token_here
16+
VAULT_AGENT_PATH_PREFIX=agent

.github/workflows/docker.yml

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,23 @@ name: Docker CICD
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- testing
88
pull_request:
99
branches:
10-
- master
10+
- main
11+
12+
env:
13+
SQLX_OFFLINE: true
1114

1215
jobs:
13-
cicd-linux-docker:
16+
17+
cicd-docker:
1418
name: Cargo and npm build
1519
runs-on: ubuntu-latest
1620
steps:
1721
- name: Checkout sources
18-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
1923

2024
- name: Install stable toolchain
2125
uses: actions-rs/toolchain@v1
@@ -61,6 +65,12 @@ jobs:
6165
with:
6266
command: check
6367

68+
- name: Run cargo sqlx prepare
69+
uses: actions-rs/cargo@v1
70+
with:
71+
command: sqlx prepare
72+
args: --release
73+
6474
- name: Cargo test
6575
if: ${{ always() }}
6676
uses: actions-rs/cargo@v1
@@ -101,7 +111,7 @@ jobs:
101111
# npm test
102112

103113
- name: Archive production artifacts
104-
uses: actions/upload-artifact@v2
114+
uses: actions/upload-artifact@v4
105115
with:
106116
name: dist-without-markdown
107117
path: |
@@ -123,18 +133,18 @@ jobs:
123133
cd ..
124134
125135
- name: Upload app archive for Docker job
126-
uses: actions/upload-artifact@v2.2.2
136+
uses: actions/upload-artifact@v4
127137
with:
128138
name: artifact-linux-docker
129139
path: app.tar.gz
130140

131-
cicd-docker:
141+
cicd-linux-docker:
132142
name: CICD Docker
133143
runs-on: ubuntu-latest
134-
needs: cicd-linux-docker
144+
needs: cicd-docker
135145
steps:
136146
- name: Download app archive
137-
uses: actions/download-artifact@v2
147+
uses: actions/download-artifact@v4
138148
with:
139149
name: artifact-linux-docker
140150

@@ -144,12 +154,21 @@ jobs:
144154
- name: Display structure of downloaded files
145155
run: ls -R
146156

147-
- name: Docker build and publish
148-
uses: docker/build-push-action@v1
157+
-
158+
name: Set up QEMU
159+
uses: docker/setup-qemu-action@v3
160+
-
161+
name: Set up Docker Buildx
162+
uses: docker/setup-buildx-action@v3
163+
-
164+
name: Login to Docker Hub
165+
uses: docker/login-action@v3
149166
with:
150167
username: ${{ secrets.DOCKER_USERNAME }}
151168
password: ${{ secrets.DOCKER_PASSWORD }}
152-
repository: trydirect/stacker
153-
add_git_labels: true
154-
tag_with_ref: true
155-
#no-cache: true
169+
-
170+
name: Build and push
171+
uses: docker/build-push-action@v6
172+
with:
173+
push: true
174+
tags: trydirect/stacker:latest

.github/workflows/notifier.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ jobs:
99

1010
notifyTelegram:
1111
runs-on: ubuntu-latest
12+
concurrency: build
1213
steps:
1314
- name: send custom message
1415
uses: appleboy/telegram-action@master
1516
with:
1617
to: ${{ secrets.TELEGRAM_TO }}
1718
token: ${{ secrets.TELEGRAM_TOKEN }}
1819
message: |
19-
"Issue ${{ github.event.action }}: \n${{ github.event.issue.html_url }}"
20+
"Github actions on push: build in progress .. ${{ github.event.action }} "

.github/workflows/rust.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ dev, main ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ dev, main ]
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
SQLX_OFFLINE: true
1112

1213
jobs:
1314
build:
14-
1515
runs-on: ubuntu-latest
16-
1716
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
17+
- uses: actions/checkout@v4
18+
- name: cargo build
2019
run: cargo build --verbose
21-
- name: Run tests
20+
- name: cargo test
2221
run: cargo test --verbose

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ access_control.conf
55
configuration.yaml
66
configuration.yaml.backup
77
configuration.yaml.orig
8+
.vscode/
9+
.env

.idea/.gitignore

Lines changed: 0 additions & 3 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 & 7 deletions
This file was deleted.

.idea/modules.xml

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

.idea/sqldialects.xml

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

0 commit comments

Comments
 (0)