diff --git a/.github/workflows/backend-latest.yml b/.github/workflows/backend-latest.yml index 381b235a..094de4a8 100644 --- a/.github/workflows/backend-latest.yml +++ b/.github/workflows/backend-latest.yml @@ -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 }} diff --git a/.github/workflows/frontend-latest.yml b/.github/workflows/frontend-latest.yml index 2822b760..e529c608 100644 --- a/.github/workflows/frontend-latest.yml +++ b/.github/workflows/frontend-latest.yml @@ -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 }} diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 4096a37b..84957294 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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}