Skip to content

Commit

Permalink
wip: add docker push test
Browse files Browse the repository at this point in the history
Signed-off-by: Magnus Kulke <[email protected]>
  • Loading branch information
mkulke committed Dec 18, 2024
1 parent ba8cc4c commit 11b456c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/mgns.yaml
Original file line number Diff line number Diff line change
@@ -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 <<EOF > Dockerfile
FROM ubuntu:22.04
RUN echo hello > /hello.txt
EOF
docker buildx build -t "${REGISTRY}/cloud-api-adaptor:latest-dev" --push .

0 comments on commit 11b456c

Please sign in to comment.