Skip to content

Commit 7594f1e

Browse files
committed
Restore only running on tag
1 parent 584a7ca commit 7594f1e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: docker run --rm tag_for_testing uvx pycowsay 'hello ubuntu-devcontainer!'
5757

5858
- name: Log in to GitHub Docker Registry
59-
# if: github.event_name != 'pull_request'
59+
if: github.ref_type == 'tag'
6060
uses: docker/login-action@v3
6161
with:
6262
registry: ghcr.io
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Build and push by digest
6767
id: build
68-
# if: github.ref_type == 'tag'
68+
if: github.ref_type == 'tag'
6969
uses: docker/build-push-action@v6
7070
with:
7171
labels: ${{ steps.meta.outputs.labels }}
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: ubuntu-latest
9090
needs:
9191
- build
92-
# if: github.ref_type == 'tag'
92+
if: github.ref_type == 'tag'
9393

9494
steps:
9595
- name: Lowercase the image name
@@ -111,11 +111,9 @@ jobs:
111111
with:
112112
images: ${{ env.GHCR_IMAGE }}
113113
tags: |
114-
type=ref,event=pr
115-
116-
# type=ref,event=tag
117-
# type=raw,value=latest
118-
# type=raw,value=noble
114+
type=ref,event=tag
115+
type=raw,value=latest
116+
type=raw,value=noble
119117
120118
- name: Log in to GitHub Docker Registry
121119
uses: docker/login-action@v3

0 commit comments

Comments
 (0)