Skip to content

test the CI - separate each steps for mor visibility on the builds #30

test the CI - separate each steps for mor visibility on the builds

test the CI - separate each steps for mor visibility on the builds #30

Workflow file for this run

name: CI Docker and Helm
on:
push:
branches:
- workflow/api-improve
env:
IMAGE_NAME: amelieloulou/transform-and-deliver-assets
CHART_PATH: ./opensource
jobs:
build-and-push-docker-api:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker Buildx and Login
uses: ./setup-docker
- name: Build and push Docker image API
run: |
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:latest ./src/api
build-and-push-docker-job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker Buildx and Login
uses: ./setup-docker
- name: Build and push Docker image Job
run: |
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:job-latest ./src
publish-helm-chart:
runs-on: ubuntu-latest
needs:
- build-and-push-docker-api
- build-and-push-docker-job
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker Buildx and Login
uses: ./setup-docker
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.11.1
- name: Package Helm chart
run: |
helm package opensource
- name: Push Helm chart to Docker Hub
run: |
helm push $(ls *.tgz) oci://registry-1.docker.io/amelieloulou