Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX workflow release #6

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/publication_vio_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ matrix.image }}
tags: |
type=ref,event=release
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
tags: type=semver,pattern={{major}}.{{minor}}.{{patch}}
flavor: latest=auto

- name: Build and push Docker images
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/publication_vio_images_raspberry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publication vio images for raspberry to Github registry

on:
release:
types:
- created
workflow_dispatch:

env:
REGISTRY: ghcr.io

jobs:
build_and_push_images:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./edge_interface/Dockerfile.raspberry
image: ghcr.io/${{ github.repository }}/edge_interface.raspberry
context: ./edge_interface
- dockerfile: ./supervisor/Dockerfile.raspberry
image: ghcr.io/${{ github.repository }}/edge_orchestrator.raspberry
context: ./supervisor
- dockerfile: ./model_serving/Dockerfile.raspberry
image: ghcr.io/${{ github.repository }}/edge_model_serving.raspberry
context: ./model_serving
- dockerfile: ./tflite_serving/Dockerfile.raspberry
image: ghcr.io/${{ github.repository }}/edge_tflite_serving.raspberry
context: ./tflite_serving
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ matrix.image }}
tags: type=semver,pattern={{major}}.{{minor}}.{{patch}}
flavor: latest=auto

- name: Build and push Docker images
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}