File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Push image to container registry
2
+ on :
3
+ - push
4
+
5
+ jobs :
6
+ docker_publish :
7
+ runs-on : " ubuntu-20.04"
8
+ steps :
9
+ - name : Checkout repository
10
+ uses : actions/checkout@v2
11
+ - name : Compute short commit sha
12
+ id : compute-sha
13
+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
14
+ - name : Build and publish Docker image
15
+ uses : macbre/push-to-ghcr@v14
16
+ with :
17
+ image_name : ${{ github.repository }}
18
+ image_tag : ${{ steps.compute-sha.outputs.short_sha }}
19
+ github_token : ${{ secrets.GHCR_TOKEN }}
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ ENV PYTHONUNBUFFERED=1
5
5
6
6
RUN apk add --no-cache git
7
7
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community openjdk21
8
- COPY run-tests.py /run-tests.py
8
+ COPY src/ run-tests.py /run-tests.py
9
9
10
10
ENTRYPOINT ["python3" , "/run-tests.py" ]
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ inputs:
20
20
# description: 'Whether or not the tests passed'
21
21
22
22
runs :
23
- using : ' docker'
24
- image : ' Dockerfile'
23
+ using : ' composite'
25
24
args :
26
25
- ${{ inputs.test-script-directory }}
27
26
- ${{ inputs.skript-repo-ref }}
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class EnvironmentResource(TypedDict):
60
60
))
61
61
with open (environment_file_path , "w" ) as environment_file :
62
62
json .dump (environment , environment_file )
63
+
63
64
shutil .rmtree (custom_test_directory , ignore_errors = True )
64
65
shutil .copytree (test_script_directory , custom_test_directory )
65
66
gradle_test_process = subprocess .run (("./gradlew" , "quickTest" ))
You can’t perform that action at this time.
0 commit comments