Skip to content

Commit d212a80

Browse files
committed
add devcontainer.json
1 parent 3948caf commit d212a80

5 files changed

Lines changed: 68 additions & 6 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "InteropIO Setup Codeartifact Action",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
4+
"postCreateCommand": "npm install",
5+
"customizations": {
6+
"codespaces": {
7+
"openFiles": ["README.md"]
8+
},
9+
"vscode": {
10+
"extensions": [
11+
"bierner.markdown-preview-github-styles",
12+
"davidanson.vscode-markdownlint",
13+
"dbaeumer.vscode-eslint",
14+
"esbenp.prettier-vscode",
15+
"github.copilot",
16+
"github.copilot-chat",
17+
"github.vscode-github-actions",
18+
"github.vscode-pull-request-github",
19+
"me-dutour-mathieu.vscode-github-actions",
20+
"redhat.vscode-yaml",
21+
"rvest.vs-code-prettier-eslint",
22+
"yzhang.markdown-all-in-one"
23+
],
24+
"settings": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode",
26+
"editor.tabSize": 2,
27+
"editor.formatOnSave": true,
28+
"markdown.extension.list.indentationSize": "adaptive",
29+
"markdown.extension.italic.indicator": "_",
30+
"markdown.extension.orderedList.marker": "one"
31+
}
32+
}
33+
},
34+
"remoteEnv": {
35+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
36+
},
37+
"features": {
38+
"ghcr.io/devcontainers/features/github-cli:1": {},
39+
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
40+
}
41+
}

.github/linters/.markdown-lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ MD013:
1010
# Ordered list item prefix
1111
MD029:
1212
style: one
13+
14+
# Spaces after list markers
15+
MD030:
16+
ul_single: 1
17+
ol_single: 1
18+
ul_multi: 1
19+
ol_multi: 1
20+
21+
# Code block style
22+
MD046:
23+
style: fenced

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ jobs:
6060
domain-owner: '389653476181'
6161
region: 'eu-central-1'
6262
authorization-token: 'my-token' # Do not use this if you have self-hosted runner with AWS credentials
63-
maven-settings: '{"repositories": ["maven-release", "maven-snapshot"], "pluginRepositories": ["maven-release"], "servers": ["codeartifact"]}'
63+
maven-settings:
64+
'{"repositories": ["maven-release", "maven-snapshot"],
65+
"pluginRepositories": ["maven-release"], "servers":
66+
["codeartifact"]}'
6467
- name: Print Output
6568
id: output
6669
run: echo "${{ steps.test-action.outputs.token }}"

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![CI](https://github.com/InteropIO/setup-codeartifact/actions/workflows/ci.yml/badge.svg)
55

66
InteropIO/setup-codeartifact is GitHub Action that sets up AWS Codeartifact for
7-
use in a workflow.
7+
use in a workflow.
88

99
## Usage
1010

@@ -18,15 +18,20 @@ steps:
1818
uses: InteropIO/setup-codeartifact@v1.1
1919
with:
2020
domain: '<domain>'
21-
domain-owner: "<domain-owner>"
21+
domain-owner: '<domain-owner>'
2222
region: '<region>'
23-
maven-settings: '["repositories":["maven-release", "maven-snapshot"], "pluginRepositories":["maven-release"], "servers": ["codeartifact"]]'
23+
maven-settings:
24+
'["repositories":["maven-release", "maven-snapshot"],
25+
"pluginRepositories":["maven-release"], "servers": ["codeartifact"]]'
2426
- name: Run Setup Java
2527
uses: actions/setup-java@v4
2628
with:
2729
distribution: 'temurin'
2830
java-version: '17'
2931
overwrite-settings: false
3032
- name: Run Maven
31-
run: ./mvnw -B clean deploy -DaltSnapshotDeploymentRepository=codeartifact::https://<domain>-<domain-owner>.d.codeartifact.<region>.amazonaws.com/maven/maven-snapshot-local -DaltReleaseDeploymentRepository=codeartifact::https://<domain>-<domain-owner>.d.codeartifact.<region>.amazonaws.com/maven/maven-release-local
33+
run:
34+
./mvnw -B clean deploy
35+
-DaltSnapshotDeploymentRepository=codeartifact::https://<domain>-<domain-owner>.d.codeartifact.<region>.amazonaws.com/maven/maven-snapshot-local
36+
-DaltReleaseDeploymentRepository=codeartifact::https://<domain>-<domain-owner>.d.codeartifact.<region>.amazonaws.com/maven/maven-release-local
3237
```

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ inputs:
2323
required: false
2424
default: '18000'
2525
authorization-token:
26-
description: 'User Provided Authorization Token. If provided no call to aws is performed'
26+
description:
27+
'User Provided Authorization Token. If provided no call to aws is
28+
performed'
2729
required: false
2830
maven-settings:
2931
description: 'Maven settings'

0 commit comments

Comments
 (0)