chore: update latest workflows and dev compose overrides
Allow manual dispatch and self-triggering path updates for latest image workflows while bumping checkout/login actions. Adjust dev compose to favor local builds and bypass backend image entrypoint for local startup.
This commit is contained in:
8
.github/workflows/backend-latest.yml
vendored
8
.github/workflows/backend-latest.yml
vendored
@@ -5,11 +5,13 @@ permissions:
|
||||
packages: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "backend/**"
|
||||
- ".github/workflows/backend-latest.yml"
|
||||
|
||||
env:
|
||||
IMAGE_NAME: "voyage-backend"
|
||||
@@ -19,17 +21,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
8
.github/workflows/frontend-latest.yml
vendored
8
.github/workflows/frontend-latest.yml
vendored
@@ -5,11 +5,13 @@ permissions:
|
||||
packages: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "frontend/**"
|
||||
- ".github/workflows/frontend-latest.yml"
|
||||
|
||||
env:
|
||||
IMAGE_NAME: "voyage-frontend"
|
||||
@@ -19,17 +21,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
web:
|
||||
build: ./frontend/
|
||||
image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||
# image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||
container_name: voyage-frontend
|
||||
restart: unless-stopped
|
||||
user: root
|
||||
@@ -28,9 +28,10 @@ services:
|
||||
|
||||
server:
|
||||
build: ./backend/
|
||||
image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||
# image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||
container_name: voyage-backend
|
||||
restart: unless-stopped
|
||||
entrypoint: []
|
||||
env_file: .env
|
||||
environment:
|
||||
- DJANGO_SUPERUSER_USERNAME=${DJANGO_ADMIN_USERNAME}
|
||||
|
||||
Reference in New Issue
Block a user