Skip to content

Commit

Permalink
Merge pull request #28 from MathieuSoysal/24-adding-a-github-action-t…
Browse files Browse the repository at this point in the history
…hat-create-automatically-a-docker-image

24 adding a GitHub action that create automatically a docker image
  • Loading branch information
MathieuSoysal authored Jan 3, 2024
2 parents 8524662 + 9ed1fa2 commit 9b161c9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
"image": "mcr.microsoft.com/devcontainers/java:1-17-bullseye",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "none",
"installMaven": "true",
"installGradle": "false"
"installMaven": true,
"version": "latest",
"jdkDistro": "ms",
"gradleVersion": "latest",
"mavenVersion": "latest",
"antVersion": "latest"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true,
"azureDnsAutoDetection": true,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v1"
}
},
"customizations": {
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
env:
MAIL : ${{ secrets.TEST_MAIL }}
PASSWORD : ${{ secrets.TEST_PASSWORD }}

- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/logement-crous-1.0.jar
asset_path: target/logement-crous-1.0.jar

publish:
runs-on: ubuntu-latest
steps:
- name: JIB container build and publish
uses: MathieuSoysal/jib-container-publish.yml@v2.1.4
with:
PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9b161c9

Please sign in to comment.