Skip to content

Commit baa99ad

Browse files
authored
feat: push image to docker registry (#121)
* push image to docker registry * change ci.yaml * change secret * add docker repo * add user * add user
1 parent f5fbeb1 commit baa99ad

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
# list of Docker images to use as base name for tags
8888
images: |
8989
ghcr.io/pluralsh/deployment-operator
90+
docker.io/pluralsh/deployment-operator
9091
# generate Docker tags based on the following events/attributes
9192
tags: |
9293
type=sha
@@ -103,6 +104,11 @@ jobs:
103104
registry: ghcr.io
104105
username: ${{ github.repository_owner }}
105106
password: ${{ secrets.GITHUB_TOKEN }}
107+
- name: Login to Docker
108+
uses: docker/login-action@v3
109+
with:
110+
username: mjgpluralsh
111+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
106112
- name: Build and push
107113
uses: docker/build-push-action@v5
108114
with:

.github/workflows/publish.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
# list of Docker images to use as base name for tags
4141
images: |
4242
ghcr.io/pluralsh/deployment-operator
43+
docker.io/pluralsh/deployment-operator
4344
# generate Docker tags based on the following events/attributes
4445
tags: |
4546
type=semver,pattern={{version}}
@@ -53,6 +54,11 @@ jobs:
5354
registry: ghcr.io
5455
username: ${{ github.repository_owner }}
5556
password: ${{ secrets.GITHUB_TOKEN }}
57+
- name: Login to Docker
58+
uses: docker/login-action@v3
59+
with:
60+
username: mjgpluralsh
61+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
5662
- name: Build and push
5763
uses: docker/build-push-action@v5
5864
with:

0 commit comments

Comments
 (0)