From fa37d10e0941d8c05440bce80280de78cf18906d Mon Sep 17 00:00:00 2001 From: Javier Evans Date: Sat, 13 Jan 2024 09:53:23 -0800 Subject: [PATCH] bring back docker hub push for test --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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