Skip to content

Add image working on Azure SGX VMs #10

Add image working on Azure SGX VMs

Add image working on Azure SGX VMs #10

name: MSE base docker image BETA
on:
push:
branches:
- 'azure-dcap*'
env:
REGISTRY: ghcr.io
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
env:
IMAGE: ghcr.io/cosmian/mse-base-azure-beta
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Packages
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
${{ env.IMAGE }}:${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}