Skip to content

Commit

Permalink
Upload images to dockerhub (#316)
Browse files Browse the repository at this point in the history
This PR change Github Action to also push container images to DockerHub
in addition to ghcr.
  • Loading branch information
edeNFed authored Jul 23, 2023
1 parent 5c4e67b commit e186be8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#####################################################
#
# List of approvers for this repository
#
#####################################################
#
#
# Learn about CODEOWNERS file format:
# https://help.github.com/en/articles/about-code-owners
#

* @keyval-dev/odigos-maintainers
25 changes: 20 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,56 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Autoscaler Image
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/keyval-dev/odigos/autoscaler:${{ steps.vars.outputs.tag }}
tags: |
ghcr.io/keyval-dev/odigos/autoscaler:${{ steps.vars.outputs.tag }}
keyval/odigos-autoscaler:${{ steps.vars.outputs.tag }}
build-args: SERVICE_NAME=autoscaler
platforms: linux/amd64,linux/arm64
- name: Build Scheduler Image
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/keyval-dev/odigos/scheduler:${{ steps.vars.outputs.tag }}
tags: |
ghcr.io/keyval-dev/odigos/scheduler:${{ steps.vars.outputs.tag }}
keyval/odigos-scheduler:${{ steps.vars.outputs.tag }}
build-args: SERVICE_NAME=scheduler
platforms: linux/amd64,linux/arm64
- name: Build Instrumentor Image
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/keyval-dev/odigos/instrumentor:${{ steps.vars.outputs.tag }}
tags: |
ghcr.io/keyval-dev/odigos/instrumentor:${{ steps.vars.outputs.tag }}
keyval/odigos-instrumentor:${{ steps.vars.outputs.tag }}
build-args: SERVICE_NAME=instrumentor
platforms: linux/amd64,linux/arm64
- name: Build Odiglet Image
uses: docker/build-push-action@v4
with:
file: odiglet/Dockerfile
push: true
tags: ghcr.io/keyval-dev/odigos/odiglet:${{ steps.vars.outputs.tag }}
tags: |
ghcr.io/keyval-dev/odigos/odiglet:${{ steps.vars.outputs.tag }}
keyval/odigos-odiglet:${{ steps.vars.outputs.tag }}
platforms: linux/amd64,linux/arm64
- name: Build UI Image
uses: docker/build-push-action@v4
with:
file: ui/Dockerfile
context: ui/
push: true
tags: ghcr.io/keyval-dev/odigos/ui:${{ steps.vars.outputs.tag }}
tags: |
ghcr.io/keyval-dev/odigos/ui:${{ steps.vars.outputs.tag }}
keyval/odigos-ui:${{ steps.vars.outputs.tag }}
platforms: linux/amd64,linux/arm64
- uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit e186be8

Please sign in to comment.