Spaces:
Running
Running
Update docker-image.yml
Browse files
.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/${{
|
22 |
|
23 |
- name: Push the Docker image
|
24 |
-
run: docker push ghcr.io/${{
|
|
|
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
|