Skip to content

Commit

Permalink
workflows: build podvm-docker-fedora-image in podvm_mkosi
Browse files Browse the repository at this point in the history
Re-use the resources/binaries-tree binaries already fetched in
the podvm_mkosi.yaml to build the podvm image for the docker provider.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm committed Aug 13, 2024
1 parent 74cc785 commit ca3fbd9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/podvm_mkosi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install Nix
uses: cachix/install-nix-action@v22

Expand Down Expand Up @@ -135,3 +142,12 @@ jobs:
with:
name: podvm-mkosi-${{ github.sha }}
path: src/cloud-api-adaptor/podvm-mkosi/build/system.raw

- name: Build and push image for docker provider
working-directory: src/cloud-api-adaptor/podvm-mkosi
run: |
make image-container
make push-image-container
env:
REGISTRY: ghcr.io/${{ github.repository }}
PODVM_TAG: ${{ github.sha }}

0 comments on commit ca3fbd9

Please sign in to comment.