Update .gitea/workflows/gitea.yaml
This commit is contained in:
parent
5f6590f679
commit
bc43946601
@ -1,15 +1,37 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
name: Tomcode landing build/deploy
|
||||
run-name: Tomcode landing is being built and deployed 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
build:
|
||||
name: build
|
||||
runs-on: node
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
run: echo "💡 Cloning repository: ${{ gitea.repository }} to the runner."
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: npm ci
|
||||
- name: Download dependencies
|
||||
run: echo "Downloading dependencies."
|
||||
run: npm ci --cache .npm --prefer-offline
|
||||
- name: Build
|
||||
run: echo "Building application."
|
||||
run: npm run build --cache .npm --prefer-offline
|
||||
- name: Dockerize
|
||||
env:
|
||||
DOCKER_HOST: tcp://docker:2376
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
DOCKER_TLS_VERIFY: 1
|
||||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
||||
run: echo "Building docker image."
|
||||
uses: docker://docker:stable-dind
|
||||
run: cd ./docker
|
||||
run: docker build -t tomcode/landing:latest .
|
||||
run: echo "Pushing docker image."
|
||||
run: docker login git.tomcode.io -u thomas -p N0sflgdh@
|
||||
run: docker push tomcode/landing:latest
|
||||
- name: Testing host
|
||||
uses: host
|
||||
run: ls -la /
|
Loading…
x
Reference in New Issue
Block a user