Skip to content

Commit 3d3c4da

Browse files
committed
fix(ci): fix Docker image push
1 parent 4d0b731 commit 3d3c4da

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
- name: Sleep while npm takes its time
3636
run: sleep 20
3737
- name: GitHub Container Registry Login
38-
run: echo ${GH_TOKEN} | docker login ghcr.io -u ionitron --password-stdin
39-
env:
40-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
38+
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
4139
- name: Build Container
4240
run: |
4341
docker build \

.github/workflows/docker-image.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- name: GitHub Container Registry Login
17-
run: echo ${GH_TOKEN} | docker login ghcr.io -u ionitron --password-stdin
18-
env:
19-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
20-
17+
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
2118
- name: Build Container
2219
run: |
2320
docker build \
@@ -28,4 +25,4 @@ jobs:
2825
- name: Push Container as latest
2926
run: docker push ghcr.io/${{ github.repository }}:latest
3027
- name: Push Container as version
31-
run: docker push ghcr.io/${{ github.repository }}:$(npm info @ionic/cli dist-tags.latest)
28+
run: docker push ghcr.io/${{ github.repository }}:$(npm info @ionic/cli dist-tags.latest)

0 commit comments

Comments
 (0)