File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM gcr.io/distroless/base-debian10
2
2
ADD scala /usr/local/bin/scala
3
+ LABEL org.opencontainers.image.source="https://github.com/virtuslabrnd/scala-cli"
3
4
ENTRYPOINT ["/usr/local/bin/scala"]
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102
102
jvm : 8
103
103
- name : Generate native launcher
104
104
run : ./mill -i show cli-core.nativeImageMostlyStatic
105
- - name : Generate docker image
105
+ - name : Build docker image
106
106
run : .github/scripts/generate-docker-images-ubuntu.sh
107
107
- name : Copy artifacts
108
108
run : ./mill -i copyMostlyStaticLauncher artifacts/
@@ -116,6 +116,18 @@ jobs:
116
116
run : ./mill -i integration-core.native-mostly-static.test
117
117
- name : Docker integration tests
118
118
run : ./mill integration.docker.test
119
+ - name : Login to GitHub Container Registry
120
+ if : github.event_name == 'push'
121
+ uses : docker/login-action@v1
122
+ with :
123
+ registry : ghcr.io
124
+ username : ${{ github.actor }}
125
+ password : ${{ secrets.GITHUB_TOKEN }}
126
+ - name : Push scala-cli to github container registry
127
+ if : github.event_name == 'push'
128
+ run : |
129
+ docker tag scala-cli ghcr.io/virtuslabrnd/scala-cli:latest
130
+ docker push ghcr.io/virtuslabrnd/scala-cli:latest
119
131
120
132
native-static-tests :
121
133
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments