Skip to content

Commit

Permalink
matplotlib experiment2 (#1414)
Browse files Browse the repository at this point in the history
* testing dummy build without push

* ok
  • Loading branch information
ab-smith authored Jan 23, 2025
1 parent dfe1d58 commit 6990f18
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/docker-build-and-push-dummy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Build and Push Docker Images Dummy

on:
push:
tags:
- "v*"
workflow_dispatch:

env:
UBUNTU_VERSION: "ubuntu-24.04"
VERSION: dummy

jobs:
build-and-push:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure all history and tags are fetched
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -32,29 +30,40 @@ jobs:
run: |
echo "VERSION=$(git describe --tags --always)" >> $GITHUB_ENV
echo "BUILD=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "CISO_ASSISTANT_VERSION=$(git describe --tags --always)" > .meta
echo "CISO_ASSISTANT_BUILD=$(git rev-parse --short HEAD)" >> .meta
cp .meta ./backend/
cp .meta ./backend/ciso_assistant/
- name: Build and Push Frontend Docker Image
- name: Build Backend ARM Docker Image
uses: docker/build-push-action@v6
with:
context: ./backend
file: ./backend/Dockerfile
load: true
platforms: linux/arm64
tags: ghcr.io/${{ github.repository }}/backend:arm64-${{ env.VERSION }}
- name: Build Frontend ARM Docker Image
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile
load: true
tags: |
ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }}
platforms: linux/amd64,linux/arm64

- name: Build and Push Backend Docker Image
platforms: linux/arm64
tags: ghcr.io/${{ github.repository }}/frontend:arm64-${{ env.VERSION }}
- name: Build Backend Docker Image
uses: docker/build-push-action@v6
with:
context: ./backend
file: ./backend/Dockerfile
load: true
tags: |
ghcr.io/${{ github.repository }}/backend:${{ env.VERSION }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: ghcr.io/${{ github.repository }}/backend:${{ env.VERSION }}
- name: Build Frontend Docker Image
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile
load: true
platforms: linux/amd64
tags: ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }}

0 comments on commit 6990f18

Please sign in to comment.