Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 18, 2024
2 parents e63d6c0 + 01cde1c commit 883a3d9
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ut-image-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build base image

on:
# Manually trigger
workflow_dispatch:
inputs:
reason:
description: 'Why ?'
required: false
default: ''

env:
REGISTRY: ghcr.io
IMAGE_NAME: photon-ut-base

jobs:
ghcr_build_and_push:
runs-on: ubuntu-latest

steps:
- name: Set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

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

- name: Build and push image
uses: docker/build-push-action@v6
with:
# path context
context: .github/workflows/base
push: true
tags: |
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.IMAGE_NAME}}:latest
platforms: linux/amd64
52 changes: 52 additions & 0 deletions .github/workflows/ut-image-fstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build fstack image

on:
# Manually trigger
workflow_dispatch:
inputs:
reason:
description: 'Why ?'
required: false
default: ''

env:
REGISTRY: ghcr.io
IMAGE_NAME: photon-ut-fstack

jobs:
ghcr_build_and_push:
runs-on: ubuntu-latest

steps:
- name: Set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

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

- name: Build and push image
uses: docker/build-push-action@v6
with:
# path context
context: .github/workflows/fstack
push: true
tags: |
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
${{ env.REGISTRY }}/${{ env.OWNER_LC }}/${{ env.IMAGE_NAME}}:latest
platforms: linux/amd64

0 comments on commit 883a3d9

Please sign in to comment.