Skip to content

Commit e719d2b

Browse files
committed
fix: docker image
1 parent 5709efc commit e719d2b

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,51 @@
1-
name: Main workflow
1+
name: Main
22
on: push
3+
env:
4+
github_username: ${{ github.actor }}
5+
github_password: ${{ secrets.GITHUB_TOKEN }}
6+
GIT_COMMIT: ${{ github.sha }}
37
jobs:
48
Build:
59
runs-on: ubuntu-latest
610
container: gradle:6-jdk11
711
steps:
8-
- name: Clone down repository
12+
- name: "checkout: repo"
913
uses: actions/checkout@v4
10-
- name: Build application
14+
- name: "build: application"
1115
run: ci/build-app.sh
12-
- name: Test
16+
- name: "test: application"
1317
run: ci/unit-test-app.sh
14-
- name: Upload repo
18+
- name: "upload: repo"
1519
uses: actions/upload-artifact@v4
1620
with:
1721
name: code
1822
path: .
1923
include-hidden-files: true
20-
Linting:
24+
Lint:
2125
runs-on: ubuntu-latest
2226
needs: [Build]
2327
steps:
24-
- name: Download code
28+
- name: "download: artifact"
2529
uses: actions/download-artifact@v4
2630
with:
2731
name: code
2832
path: .
29-
- name: run linting
33+
- name: "run: lint"
3034
uses: super-linter/super-linter/slim@v7
3135
env:
3236
DEFAULT_BRANCH: main
3337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3438
DISABLE_ERRORS: true
39+
Docker:
40+
runs-on: ubuntu-latest
41+
needs: [Build]
42+
steps:
43+
- name: "download: artifact"
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: code
47+
path: .
48+
- name: "build: docker"
49+
run: bash ci/build-docker.sh
50+
- name: "deploy: docker"
51+
run: bash ci/push-docker.sh

0 commit comments

Comments
 (0)