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
|
packages: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "backend/**"
|
- "backend/**"
|
||||||
|
- ".github/workflows/backend-latest.yml"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "voyage-backend"
|
IMAGE_NAME: "voyage-backend"
|
||||||
@@ -19,17 +21,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.ACCESS_TOKEN }}
|
password: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
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
|
packages: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "frontend/**"
|
- "frontend/**"
|
||||||
|
- ".github/workflows/frontend-latest.yml"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "voyage-frontend"
|
IMAGE_NAME: "voyage-frontend"
|
||||||
@@ -19,17 +21,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.ACCESS_TOKEN }}
|
password: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: ./frontend/
|
build: ./frontend/
|
||||||
image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
# image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||||
container_name: voyage-frontend
|
container_name: voyage-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: root
|
user: root
|
||||||
@@ -28,9 +28,10 @@ services:
|
|||||||
|
|
||||||
server:
|
server:
|
||||||
build: ./backend/
|
build: ./backend/
|
||||||
image: ghcr.io/alex-wiesner/voyage-backend:latest
|
# image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||||
container_name: voyage-backend
|
container_name: voyage-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
entrypoint: []
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- DJANGO_SUPERUSER_USERNAME=${DJANGO_ADMIN_USERNAME}
|
- DJANGO_SUPERUSER_USERNAME=${DJANGO_ADMIN_USERNAME}
|
||||||
|
|||||||
Reference in New Issue
Block a user