diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4b193c2..e355db69 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -270,6 +270,12 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + # This second invocation of build/push should just use the existing build cache - name: Build and push image [oss] uses: docker/build-push-action@v5 @@ -282,6 +288,8 @@ jobs: tags: | ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:latest-${{ steps.date.outputs.date }} ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:latest + nginxinc/nginx-s3-gateway:latest-${{ steps.date.outputs.date }} + nginxinc/nginx-s3-gateway:latest - name: Build and push image [latest-njs] uses: docker/build-push-action@v5 @@ -296,6 +304,8 @@ jobs: tags: | ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:latest-njs-oss-${{ steps.date.outputs.date }} ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:latest-njs-oss + nginxinc/nginx-s3-gateway:latest-njs-oss-${{ steps.date.outputs.date }} + nginxinc/nginx-s3-gateway:latest-njs-oss - name: Build and push image [unprivileged] uses: docker/build-push-action@v5 @@ -310,3 +320,5 @@ jobs: tags: | ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:unprivileged-oss-${{ steps.date.outputs.date }} ghcr.io/${{ github.repository }}/nginx-oss-s3-gateway:unprivileged-oss + nginxinc/nginx-s3-gateway:unprivileged-oss-${{ steps.date.outputs.date }} + nginxinc/nginx-s3-gateway:unprivileged-oss