Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tryng to fix #9

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
id: build
run: |
COMMIT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
docker build --file Dockerfile --tag ${{ github.repository }}:latest --tag ${{ github.repository }}:${COMMIT_SHA} .
IMAGE_NAME="ghcr.io/${{ github.repository }}/security-gate"
docker build --file Dockerfile --tag ${IMAGE_NAME}:latest --tag ${IMAGE_NAME}:${COMMIT_SHA} .
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV

- name: Log in to GitHub Container Registry
Expand All @@ -31,5 +33,5 @@ jobs:

- name: Push Docker image to GitHub Container Registry
run: |
docker push ghcr.io/${{ github.repository }}/security-gate:latest
docker push ghcr.io/${{ github.repository }}/security-gate:${{ env.COMMIT_SHA }}
docker push ${{ env.IMAGE_NAME }}:latest
docker push ${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHA }}
Loading