ver 0.1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: Smoke — Checkout
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
checkout:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify working directory
|
||||
run: |
|
||||
echo "Repo: $(pwd)"
|
||||
ls -la
|
||||
git log --oneline -5
|
||||
@@ -0,0 +1,31 @@
|
||||
name: Smoke — Docker Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: registry.alwisp.com
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and Push
|
||||
run: |
|
||||
docker build \
|
||||
-t registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest \
|
||||
-t registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:${{ gitea.sha }} \
|
||||
-f docker/runner/Dockerfile \
|
||||
.
|
||||
|
||||
docker push registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest
|
||||
docker push registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:${{ gitea.sha }}
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Smoke — Docker Login
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
login:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: registry.alwisp.com
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Confirm Docker login
|
||||
run: docker info
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Smoke — Node Action
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
node:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Print Node version
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
|
||||
- name: Run inline Node script
|
||||
run: node -e "console.log('Node.js works:', process.version)"
|
||||
Reference in New Issue
Block a user