summaryrefslogtreecommitdiffci
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-and-deploy.yml10
-rw-r--r--deploy/inventory.yml30
-rw-r--r--deploy/playbook.yml1
3 files changed, 18 insertions, 23 deletions
diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml
index 9fc34fb..57cfc96 100644
--- a/.github/workflows/build-and-deploy.yml
+++ b/.github/workflows/build-and-deploy.yml
@@ -8,8 +8,6 @@ jobs:
if: github.repository == 'SayaAndy/saya-today-web'
runs-on: ubuntu-latest
environment: Production
- permissions:
- packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -20,17 +18,17 @@ jobs:
output: static/output.css
params: "--minify"
- name: Set up QEMU
- uses: docker/setup-qemu-action@v3
+ uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
- uses: docker/login-action@v3
+ uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
diff --git a/deploy/inventory.yml b/deploy/inventory.yml
index 5c88365..d3c325f 100644
--- a/deploy/inventory.yml
+++ b/deploy/inventory.yml
@@ -1,17 +1,15 @@
-all:
- children:
- prod:
- hosts:
- pl.saya.today:
- saya_today_web:
- name: sayana-web
- hostname: sayana-web
- ipv4_address: 172.16.0.18
+prod:
+ hosts:
+ pl.saya.today:
+ saya_today_web:
+ name: sayana-web
+ hostname: sayana-web
+ ipv4_address: 172.16.0.18
- stage:
- hosts:
- pl.saya.today:
- saya_today_web:
- name: sayana-demo
- hostname: sayana-demo
- ipv4_address: 172.16.0.17
+stage:
+ hosts:
+ pl.saya.today:
+ saya_today_web:
+ name: sayana-demo
+ hostname: sayana-demo
+ ipv4_address: 172.16.0.17
diff --git a/deploy/playbook.yml b/deploy/playbook.yml
index c126f23..571ed2b 100644
--- a/deploy/playbook.yml
+++ b/deploy/playbook.yml
@@ -1,6 +1,5 @@
---
- name: Deploy saya-today-web Docker Container
- hosts: all
remote_user: svc_github
tasks: