Skip to content

Commit

Permalink
fix: action issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ralgar committed Apr 13, 2024
1 parent 86030db commit 4957cc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/actions/kolla-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
name: "Kolla Build"
name: Kolla Build
description: "Installs, configures, and runs Kolla Build."

inputs:
component:
description: "Name of the component to build"
description: "Name of the component to build."
required: true
ghcr_token:
description: "Token for accessing GitHub Container Registry."
required: true

runs:
Expand All @@ -29,10 +32,11 @@ runs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.ghcr_token }}

- name: Build and push containers
run: >
kolla-build
--config-file ${{ inputs.component }}/build.conf
--template-override ${{ inputs.component }}/override.j2
shell: bash
7 changes: 4 additions & 3 deletions .github/workflows/magnum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: Build Magnum
on:
push:
paths:
- '.github/actions/setup-kolla/**'
- '.github/actions/kolla-build/**'
- 'magnum/**'

env:
COMPONENT: "magnum"
COMPONENT: magnum

jobs:
kolla-build:
Expand All @@ -17,7 +17,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Kolla
- name: Kolla Build
uses: ./.github/actions/kolla-build
with:
component: ${{ env.COMPONENT }}
ghcr_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4957cc9

Please sign in to comment.