Skip to content

Commit fdbdf8a

Browse files
committed
ci improvements
1 parent eac9bc8 commit fdbdf8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
-H "Accept: application/vnd.github+json" \
148148
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
149149
-H "X-GitHub-Api-Version: 2022-11-28" \
150-
https://api.github.com/repos/tsviz/springboot_demo/actions/artifacts | jq -r '.artifacts | sort_by(.created_at) | .[] | select(.name == "Test Results") | .id' > artifacts_list.txt
150+
https://api.github.com/repos/${{ github.repository }}/actions/artifacts | jq -r '.artifacts | sort_by(.created_at) | .[] | select(.name == "Test Results") | .id' > artifacts_list.txt
151151
152152
LATEST_ARTIFACT_NUMBER=$(cut -d: -f 2 artifacts_list.txt | sort -n | tail -n 1)
153153
@@ -156,7 +156,7 @@ jobs:
156156
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
157157
-H "X-GitHub-Api-Version: 2022-11-28" \
158158
-L -o my_artifact.zip \
159-
https://api.github.com/repos/octodemo/java-springboot-demo/actions/artifacts/"${LATEST_ARTIFACT_NUMBER}"/zip
159+
https://api.github.com/repos/${{ github.repository }}/actions/artifacts/"${LATEST_ARTIFACT_NUMBER}"/zip
160160
161161
mkdir test_results
162162
unzip my_artifact.zip -d test_results 2> /dev/null || true
@@ -222,7 +222,7 @@ jobs:
222222
# and tag it with the current run number from the github action workflow run
223223
- name: Docker build
224224
run: |
225-
docker build . -t ghcr.io/octodemo/${{ github.repository }}:${{ github.run_number }}
225+
docker build . -t ghcr.io/${{ github.repository }}:${{ github.run_number }}
226226
- name: Log in to the GH Container Registry
227227
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # using the docker login action from the github marketplace - github.com/marketplace/actions/docker-login
228228
with:

0 commit comments

Comments
 (0)