Skip to content

Commit 665fe92

Browse files
committed
Add basic container workflow
1 parent 4408822 commit 665fe92

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container
2+
name: Container workflow
3+
run-name: Container workflow
4+
on: workflow_dispatch
5+
jobs:
6+
simple-job:
7+
runs-on: runner-set
8+
container:
9+
image: registry.access.redhat.com/ubi10/ubi:latest
10+
env:
11+
MY_VAR: foo
12+
steps:
13+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
14+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted outside of GitHub!"
15+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
16+
- name: Check out repository code
17+
uses: actions/checkout@v4
18+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
19+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
20+
- name: List files in the repository
21+
run: |
22+
ls ${{ github.workspace }}
23+
- name: Get hostname and runner details
24+
run: |
25+
set -x
26+
echo ${MY_VAR}
27+
hostname
28+
uname -a
29+
cat /etc/os-release
30+
- run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)