Skip to content

Commit

Permalink
CD - Enable build-docker-image-with-release-name-tag job
Browse files Browse the repository at this point in the history
  • Loading branch information
Juansecu committed Jan 15, 2023
1 parent 7b0250d commit cc674c6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc674c6

Please sign in to comment.