From a67723875763fb42da831ed940bfaa3ac4b81112 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Tue, 18 Jun 2024 10:57:42 +0300 Subject: [PATCH 1/2] ci: publish images to dockerhub --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f155824..38f65cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,39 @@ permissions: contents: read jobs: + + publish-docker-images: + strategy: + matrix: + include: + - service: coupon + - service: frontend + - service: inventory + - service: membership + - service: pricing + runs-on: ubuntu-latest + steps: + - name: Store new version in env + run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker Image for ${{ matrix.service }} + uses: docker/build-push-action@v5 + with: + push: true + tags: keyval/odigos-${{ matrix.service }}:${{ env.TAG }} + platforms: linux/amd64,linux/arm64 + file: ${{ matrix.service }}/Dockerfile + ###################### #### MEMBERSHIP #### ###################### From 6ca40e0125b47a77c0e37a8c266563c57faf3bb7 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Tue, 18 Jun 2024 11:19:58 +0300 Subject: [PATCH 2/2] fix: image name --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 38f65cd..3880c0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: uses: docker/build-push-action@v5 with: push: true - tags: keyval/odigos-${{ matrix.service }}:${{ env.TAG }} + tags: keyval/odigos-demo-${{ matrix.service }}:${{ env.TAG }} platforms: linux/amd64,linux/arm64 file: ${{ matrix.service }}/Dockerfile