Skip to content

Commit

Permalink
add workflow to test GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed Oct 15, 2024
1 parent 787be78 commit 5fcc9bb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
## needed for cross-compilation via qemu
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- uses: ./.github/actions/setup
- name: download build-amd64
uses: actions/download-artifact@v4
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: test glrd GH action
on:
workflow_dispatch:
jobs:
query:
name: query
runs-on: 'ubuntu-latest'
steps:
- name: Get latest GL patch version
id: gl_version_latest
uses: gardenlinux/glrd@main
with:
cmd: glrd --no-header --type patch --latest --fields Version
- name: Use latest GL patch version
run: echo ${{ steps.gl_version_latest.outputs.result }}
- name: Get latest GL nightly version
id: gl_version_nightly
uses: gardenlinux/glrd@main
with:
cmd: glrd --no-header --type nightly --latest --fields Version
- name: Use latest GL nightly version
run: echo ${{ steps.gl_version_nightly.outputs.result }}
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ outputs:
description: "The complete result from the glrd command being run"
runs:
using: 'docker'
image: 'docker://ghcr.io/gardenlinux/glcr'
image: 'docker://ghcr.io/gardenlinux/glrd'
args:
- ${{ inputs.cmd }}

0 comments on commit 5fcc9bb

Please sign in to comment.