-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gha] Add a docker image creation Github workflow
- Loading branch information
1 parent
a2b934a
commit 060bda0
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Docker | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
tags: | ||
- v** | ||
|
||
jobs: | ||
sdk-test-docker: | ||
if: github.repository_owner == 'restatedev' | ||
runs-on: ubuntu-latest | ||
name: "Features integration test" | ||
permissions: | ||
contents: read | ||
issues: read | ||
checks: write | ||
pull-requests: write | ||
actions: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: restatedev/sdk-java | ||
|
||
- name: Set up Docker containerd snapshotter | ||
uses: crazy-max/ghaction-setup-docker@v3 | ||
with: | ||
set-host: true | ||
daemon-config: | | ||
{ | ||
"features": { | ||
"containerd-snapshotter": true | ||
} | ||
} | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build restatedev/java-test-services image | ||
run: ./gradlew -Djib.console=plain :test-services:jibDockerBuild | ||
|
||
- name: Push image | ||
run: | | ||
docker tag restatedev/java-test-services:latest ghcr.io/restatedev/test-services-java:main | ||
docker push ghcr.io/restatedev/test-services-java:main | ||