Fix dockerbuild github action
This commit is contained in:
Aditya
2023-11-13 03:36:33 +05:30
committed by GitHub
+31 -26
View File
@@ -2,7 +2,12 @@ name: dockerbuild
on: on:
push: push:
branches: [main] branches:
- main
paths:
- "**"
- "!.github/**"
- "!**.md"
jobs: jobs:
main: main:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -11,45 +16,45 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- app: frontend - app: frontend
path: frontend path: frontend
version: latest version: latest
experimental: true experimental: true
- app: backend - app: backend
path: backend path: backend
version: latest version: latest
experimental: true experimental: true
- app: app_sdk - app: app_sdk
path: backend/app_sdk path: backend/app_sdk
version: latest version: latest
experimental: true experimental: true
- app: orborus - app: orborus
path: functions/onprem/orborus path: functions/onprem/orborus
version: latest version: latest
experimental: true experimental: true
- app: worker - app: worker
path: functions/onprem/worker path: functions/onprem/worker
version: latest version: latest
experimental: true experimental: true
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
with: with:
platforms: 'amd64,arm64,arm' platforms: "amd64,arm64,arm"
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Ghcr - name: Login to Ghcr
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
@@ -64,7 +69,7 @@ jobs:
with: with:
logout: false logout: false
context: ${{ matrix.path }}/ context: ${{ matrix.path }}/
file: ${{ matrix.path }}/Dockerfile file: ${{ matrix.path }}/Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache