bibibi12345 commited on
Commit
ca1f598
·
unverified ·
1 Parent(s): 6c8ff04

Update docker-image.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/docker-image.yml +5 -2
.github/workflows/docker-image.yml CHANGED
@@ -12,13 +12,16 @@ jobs:
12
  runs-on: ubuntu-latest
13
 
14
  steps:
 
 
 
15
  - uses: actions/checkout@v4
16
 
17
  - name: Log in to GitHub Container Registry
18
  run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
19
 
20
  - name: Build the Docker image
21
- run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
22
 
23
  - name: Push the Docker image
24
- run: docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
 
12
  runs-on: ubuntu-latest
13
 
14
  steps:
15
+ - name: lowercase repository name
16
+ run: echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV}
17
+
18
  - uses: actions/checkout@v4
19
 
20
  - name: Log in to GitHub Container Registry
21
  run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
22
 
23
  - name: Build the Docker image
24
+ run: docker build . --file Dockerfile --tag ghcr.io/${{ env.IMAGE_NAME }}:latest
25
 
26
  - name: Push the Docker image
27
+ run: docker push ghcr.io/${{ env.IMAGE_NAME }}:latest