Skip to content

Commit

Permalink
Fixing the jank v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed May 6, 2024
1 parent 8635624 commit c409f4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ jobs:
echo "${docker_dirs}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# This should be docker compose or something

- name: Build and Push Docker Images
run: |
while IFS= read -r dir; do
if [[ -n "$dir" ]]; then
dockerfile="./$dir/Dockerfile"
image_name=$(basename "$dir") # Extracts the name of the directory
docker build -f "$dockerfile" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest .
docker build -f "$dockerfile" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest .
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
# tag the image with the short SHA
docker tag ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
Expand Down

0 comments on commit c409f4e

Please sign in to comment.