Skip to content

Commit aabadbc

Browse files
authored
Create container.yaml
1 parent 12d20d2 commit aabadbc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/container.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Run on Custom Docker Container
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
custom-container-job:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: docker.io/library/maven:3.9.6
10+
#options: --user 1001 # optional: run as specific user
11+
env:
12+
CUSTOM_ENV: "production"
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Show current user
17+
run: whoami
18+
- name: package
19+
run: mvn package

0 commit comments

Comments
 (0)