Skip to content

Commit

Permalink
adjusting stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Walters authored and Mathew Walters committed Nov 6, 2024
1 parent 502b503 commit d54b51a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: lowercase
run: |
echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository_owner | toLowerCase }}/demo-app:${{ github.sha }} .
docker build -t ghcr.io/${{ env.GITHUB_ENV }}:${{ github.sha }} .
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository_owner | toLowerCase }}/demo-app:${{ github.sha }}
docker push ghcr.io/${{ env.GITHUB_ENV }}:${{ github.sha }}
- name: Output image tag
run: |
echo "Image: ghcr.io/${{ github.repository_owner | toLowerCase }}/demo-app:${{ github.sha }}"
echo "Image: ghcr.io/${{ github.repository_owner }}:${{ github.sha }}"

0 comments on commit d54b51a

Please sign in to comment.