Skip to content

Commit

Permalink
improvement: S3UTILS-153-update-registry-to-ghcr
Browse files Browse the repository at this point in the history
Removed the notion of repository-dev and makes sure all images are
available under the GHCR registry.
  • Loading branch information
anurag4DSB committed Mar 7, 2024
1 parent 6c95e3c commit 8240847
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Registry
uses: docker/login-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: registry.scality.com
username: ${{ secrets.REGISTRY_LOGIN }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Build and push
uses: docker/build-push-action@v2
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
with:
context: .
file: ./Dockerfile
push: true
tags: "registry.scality.com/s3utils/s3utils:${{ github.event.inputs.tag }}"
cache-from: type=gha
cache-to: type=gha,mode=max
name: s3utils
tag: ${{ github.event.inputs.tag }}
namespace: scality

- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Registry
uses: docker/login-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: registry.scality.com
username: ${{ secrets.REGISTRY_LOGIN }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Build and push
uses: docker/build-push-action@v2
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
with:
context: .
file: ./Dockerfile
push: true
tags: "registry.scality.com/s3utils-dev/s3utils:${{ github.sha }}"
cache-from: type=gha
cache-to: type=gha,mode=max
name: s3utils
namespace: scality

0 comments on commit 8240847

Please sign in to comment.