Skip to content

Commit 33e2e89

Browse files
committed
VCST-1109: Add publish image
1 parent a1d01eb commit 33e2e89

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/pr-ci.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,29 @@ jobs:
3333
runs-on: ubuntu-latest
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
36+
ARTIFACT_NAME: 'platform'
37+
envPAT: ${{ secrets.REPO_TOKEN }}
38+
dockerUser: ${{ secrets.DOCKER_USERNAME }}
39+
dockerToken: ${{ secrets.DOCKER_TOKEN }}
3640
steps:
41+
# - name: Get cache key
42+
# uses: VirtoCommerce/vc-github-actions/cache-get-key@master
43+
# id: cache-key
44+
# with:
45+
# runnerOs: ${{ runner.os }}
46+
# artifactName: ${{ env.ARTIFACT_NAME }}
47+
- name: Publish image
48+
uses: VirtoCommerce/.github/.github/workflows/publish-docker.yml@v3.800.7
49+
id: publish-image
50+
with:
51+
fullKey: ${{ needs.build.outputs.dockerFullKey }}
52+
shortKey: '${{ needs.build.outputs.dockerShortKey }}-'
53+
dockerTar: ${{ needs.build.outputs.dockerTar }}
3754
- name: publish-tag
3855
if: ${{ github.event_name == 'pull_request' }}
3956
uses: VirtoCommerce/vc-github-actions/publish-artifact-link@master
4057
with:
41-
artifactUrl: ${{ needs.build.outputs.imageTag}}
58+
artifactUrl: ${{ steps.publish-image.tag}}
4259
repoOrg: ${{ github.repository_owner }}
4360
downloadComment: 'Image tag:'
44-
githubToken: ${{ env.GITHUB_TOKEN }}
61+
githubToken: ${{ env.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)