Skip to content

Commit

Permalink
Merge pull request #16 from odigos-io/publish-to-dockerhub
Browse files Browse the repository at this point in the history
ci: publish images to dockerhub
  • Loading branch information
blumamir committed Jun 18, 2024
2 parents 94f5744 + 6ca40e0 commit 4f1732d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-demo-${{ matrix.service }}:${{ env.TAG }}
platforms: linux/amd64,linux/arm64
file: ${{ matrix.service }}/Dockerfile

######################
#### MEMBERSHIP ####
######################
Expand Down

0 comments on commit 4f1732d

Please sign in to comment.