2023-06-10 17:02:47 -04:00
|
|
|
name: rtj.dev Build and Deploy
|
|
|
|
run-name: Build and Deploy
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Build-and-Deploy:
|
|
|
|
runs-on: docker
|
2023-06-10 18:06:03 -04:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: sh
|
2023-06-10 17:02:47 -04:00
|
|
|
steps:
|
2023-06-10 17:17:16 -04:00
|
|
|
- name: Setup node.js
|
2023-06-10 17:40:45 -04:00
|
|
|
run: |
|
2023-06-10 18:01:53 -04:00
|
|
|
apk --update add nodejs npm git
|
2023-06-10 17:02:47 -04:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
|
|
- name: Pass login information
|
|
|
|
env:
|
|
|
|
DOCKER_AUTH_CONFIG: ${{ secrets.DOCKER_AUTH_CONFIG }}
|
|
|
|
run: |
|
|
|
|
docker info
|
|
|
|
mkdir -p $HOME/.docker
|
|
|
|
echo "$DOCKER_AUTH_CONFIG" > $HOME/.docker/config.json
|
|
|
|
|
|
|
|
- name: Build Docker Image
|
|
|
|
run: |
|
|
|
|
docker build -f Dockerfile -t rtj.dev:0.0.1
|
|
|
|
docker push rtj.dev:0.0.1
|