Update .gitea/workflows/demo.yaml
All checks were successful
Gitea Actions Demo with Node Alpine Container / Explore-Gitea-Actions-Container (push) Successful in 15s
All checks were successful
Gitea Actions Demo with Node Alpine Container / Explore-Gitea-Actions-Container (push) Successful in 15s
This commit is contained in:
parent
4f51ad0b48
commit
be534c78a5
@ -1,31 +1,31 @@
|
|||||||
name: Gitea Actions Demo with Alpine Container
|
name: Gitea Actions Demo with Node Alpine Container
|
||||||
run-name: ${{ gitea.actor }} is testing Alpine container in Gitea Actions 🏔️
|
run-name: ${{ gitea.actor }} is testing container in Gitea Actions 🏔️
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions-Alpine:
|
Explore-Gitea-Actions-Container:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: alpine:3.19
|
image: node:18-alpine
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
- run: echo "🏔️ This job is now running inside an Alpine Linux container!"
|
- run: echo "🏔️ This job is now running inside a Node.js Alpine container!"
|
||||||
- name: Install essential tools
|
- name: Install git
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache git curl bash
|
apk add --no-cache git
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
- name: Prove we're in Alpine container
|
- name: Prove we're in Node Alpine container
|
||||||
run: |
|
run: |
|
||||||
echo "📦 Alpine Container evidence:"
|
echo "📦 Node Alpine Container evidence:"
|
||||||
|
echo "---------------------"
|
||||||
|
echo "Node.js version:"
|
||||||
|
node --version
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
echo "Alpine version:"
|
echo "Alpine version:"
|
||||||
cat /etc/alpine-release
|
cat /etc/alpine-release
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
echo "Package manager:"
|
|
||||||
which apk
|
|
||||||
echo "---------------------"
|
|
||||||
echo "Container environment:"
|
echo "Container environment:"
|
||||||
uname -a
|
uname -a
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user