Skip to content

Commit 72aac41

Browse files
authored
Update docker.yml
1 parent acc7802 commit 72aac41

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13-
# env:
14-
# GITHUB_IMAGE_NAME: ${{ github.repository }}
15-
# GITHUB_REGISTRY: ghcr.io
13+
env:
14+
GITHUB_IMAGE_NAME: ${{ github.repository }}
1615

1716
jobs:
1817
build:
@@ -22,18 +21,11 @@ jobs:
2221
steps:
2322
- uses: actions/checkout@v4
2423

25-
# - name: Login to ${{ env.GITHUB_REGISTRY }}
26-
# uses: docker/login-action@v3
27-
# with:
28-
# registry: ${{ env.GITHUB_REGISTRY }}
29-
# username: ${{ github.actor }}
30-
# password: ${{ secrets.GITHUB_TOKEN }}
31-
32-
- name: Build and Push Image
24+
- name: Build Image
3325
uses: docker/build-push-action@v6
3426
with:
3527
context: .
3628
# push: true
3729
tags: |
38-
${{ env.GITHUB_REGISTRY }}/${{ env.GITHUB_IMAGE_NAME }}
39-
${{ env.GITHUB_REGISTRY }}/${{ env.GITHUB_IMAGE_NAME }}:${{ github.ref_name }}
30+
${{ env.GITHUB_IMAGE_NAME }}
31+
${{ env.GITHUB_IMAGE_NAME }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)