From cc674c67e869e2168e091d6b790ad52d90a20947 Mon Sep 17 00:00:00 2001 From: Juansecu Date: Sat, 14 Jan 2023 20:23:13 -0500 Subject: [PATCH] CD - Enable build-docker-image-with-release-name-tag job --- .github/workflows/push-docker-image.yml | 32 ++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index bf16d47..8b9097f 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -20,22 +20,22 @@ jobs: - name: Run unit tests run: pnpm install-test - #build-docker-image-with-release-name-tag: - # runs-on: ubuntu-latest - # strategy: - # matrix: - # docker-repository: [juansecu/votatoon-api] - # steps: - # - uses: actions/checkout@v3 - # - name: Build the Docker image - # run: docker build . --tag ${{ matrix.docker-repository }}:${{ github.event.release.name }} - # - name: Log in to the Docker Hub registry - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_TOKEN }} - # - name: Push the Docker image - # run: docker push ${{ matrix.docker-repository }}:${{ github.event.release.name }} + build-docker-image-with-release-name-tag: + runs-on: ubuntu-latest + strategy: + matrix: + docker-repository: [juansecu/votatoon-api] + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --tag ${{ matrix.docker-repository }}:${{ github.event.release.name }} + - name: Log in to the Docker Hub registry + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Push the Docker image + run: docker push ${{ matrix.docker-repository }}:${{ github.event.release.name }} build-docker-image-with-latest-tag: runs-on: ubuntu-latest