Skip to content

Commit

Permalink
Restructure repo to single workspace, remove queue (#54)
Browse files Browse the repository at this point in the history
* Restructure repo to single workspace, remove queue

* Optimize api docker build
  • Loading branch information
sneakycrow authored Feb 15, 2025
1 parent 26de0d1 commit 0512745
Show file tree
Hide file tree
Showing 155 changed files with 1,324 additions and 2,247 deletions.
44 changes: 5 additions & 39 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,49 +52,15 @@ jobs:
platforms: linux/amd64
tags: |
${{ steps.image_tag.outputs.value }}
cache-from: type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.API_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.API_IMAGE }}:buildcache,mode=max
cache-from: |
type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.API_IMAGE }}:buildcache
type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.API_IMAGE }}:latest
cache-to: |
type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.API_IMAGE }}:buildcache,mode=max
- name: Image digest
run: echo "API image digest $(doctl registry repository digest-list ${{ vars.API_IMAGE }} --format Tag,Digest --no-header | grep ${{ needs.setup.outputs.version }})"

build-queue:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set image tag
id: image_tag
run: echo "value=${{ secrets.DO_REGISTRY }}/${{ vars.QUEUE_IMAGE }}:${{ needs.setup.outputs.version }}" >> $GITHUB_OUTPUT

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DO_REGISTRY_KEY }}

- name: Log in to DO Container Registry
run: doctl registry login --expiry-seconds 600

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Queue image
uses: docker/build-push-action@v5
with:
context: .
file: config/queue.Dockerfile
push: true
platforms: linux/amd64
tags: |
${{ steps.image_tag.outputs.value }}
cache-from: type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.QUEUE_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ secrets.DO_REGISTRY }}/${{ vars.QUEUE_IMAGE }}:buildcache,mode=max

- name: Image digest
run: echo "Queue image digest $(doctl registry repository digest-list ${{ vars.QUEUE_IMAGE }} --format Tag,Digest --no-header | grep ${{ needs.setup.outputs.version }})"

build-ui:
needs: setup
runs-on: ubuntu-latest
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/build-queue.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ target/
!.env.example
uploads/
/videos
storage/
.bin/
Loading

0 comments on commit 0512745

Please sign in to comment.