Skip to content

Commit

Permalink
[HNC-466]-Push Docker Image
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-hitachivantara committed Dec 26, 2023
1 parent 03afa3b commit a61c23a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/bootstrap-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN --mount=type=secret,id=myuser \
RUN curl -fL https://install-cli.jfrog.io | sh

ARG JQ_VERSION=1.6

RUN curl -L -o jq-linux64 https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq && \
chmod +x /usr/local/bin/jq
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bootstrap-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:

- name: Build
id: build-image
run: docker buildx build -t "${{ env.ARTIFACTORY }}/${{ env.IMAGE }}" -f .github/bootstrap-image/Dockerfile --secret id=myuser,env=ARTIFACTORY_USER --secret id=mytoken,env=ARTIFACTORY_API_KEY .
run: docker buildx build -t ${{ env.ARTIFACTORY }}/${{ env.IMAGE }} --push -f .github/bootstrap-image/Dockerfile --secret id=myuser,env=ARTIFACTORY_USER --secret id=mytoken,env=ARTIFACTORY_API_KEY .

- name: Push to Artifactory
id: push-to-artifactory
run: |
docker push ${{ env.ARTIFACTORY }}/${{ env.IMAGE }}
# - name: Push to Artifactory
# id: push-to-artifactory
# run: |
# docker push ${{ env.ARTIFACTORY }}/${{ env.IMAGE }}

# - name: Push to Artifactory Using buildX
# id: push-to-artifactory
Expand Down

0 comments on commit a61c23a

Please sign in to comment.