diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abe15008..998ed147 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3be7e016..0ae8daee 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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