Skip to content

Commit

Permalink
feat: push image to docker registry (#121)
Browse files Browse the repository at this point in the history
* push image to docker registry

* change ci.yaml

* change secret

* add docker repo

* add user

* add user
  • Loading branch information
zreigz authored Feb 16, 2024
1 parent f5fbeb1 commit baa99ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/pluralsh/deployment-operator
docker.io/pluralsh/deployment-operator
# generate Docker tags based on the following events/attributes
tags: |
type=sha
Expand All @@ -103,6 +104,11 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker
uses: docker/login-action@v3
with:
username: mjgpluralsh
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/pluralsh/deployment-operator
docker.io/pluralsh/deployment-operator
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
Expand All @@ -53,6 +54,11 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker
uses: docker/login-action@v3
with:
username: mjgpluralsh
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit baa99ad

Please sign in to comment.