From 11b456c266b55f3c137a041478c12d34e3868df7 Mon Sep 17 00:00:00 2001 From: Magnus Kulke Date: Wed, 18 Dec 2024 15:15:19 +0100 Subject: [PATCH] wip: add docker push test Signed-off-by: Magnus Kulke --- .github/workflows/mgns.yaml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/mgns.yaml diff --git a/.github/workflows/mgns.yaml b/.github/workflows/mgns.yaml new file mode 100644 index 000000000..32ceafca5 --- /dev/null +++ b/.github/workflows/mgns.yaml @@ -0,0 +1,41 @@ +# (C) Copyright Confidential Containers Contributors 2023. +# SPDX-License-Identifier: Apache-2.0 +# +# Daily run the e2e tests for libvirt. +--- +name: mgns oci push test + +on: + push: + branches: + - mkulke/add-scratch-space-for-sandbox + +jobs: + mgns-oci-push-test: + runs-on: ubuntu-24.04 + steps: + - name: Checkout the code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Github Container Registry + if: ${{ startsWith(inputs.registry, 'ghcr.io') }} + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: mgns test push + env: + REGISTRY: ${{ inputs.registry }} + run: | + mkdir mgns && cd mgns + cat < Dockerfile + FROM ubuntu:22.04 + + RUN echo hello > /hello.txt + EOF + docker buildx build -t "${REGISTRY}/cloud-api-adaptor:latest-dev" --push .