Skip to content

Commit

Permalink
fix: docker error (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirily11 authored Jul 16, 2022
1 parent d054d82 commit 39b6cd0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,44 @@ jobs:
run: swift test
working-directory: services/${{ matrix.app }}
- run: docker-compose down
docker-service:
name: Build dockerized services
runs-on: ubuntu-latest
strategy:
matrix:
app: ["video/video_upload_service", "video/video_transcode_service"]
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push ${{ matrix.app }}
uses: docker/build-push-action@v3
with:
context: ./
file: ./docker/services/service.dockerfile
platforms: linux/amd64
push: false
tags: ghcr.io/${{ github.repository }}/${{ matrix.app }}:latest
build-args: |
APP_NAME=${{ matrix.app }}
cache-from: type=gha
cache-to: type=gha,mode=max

create-release:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ (github.event.pusher.name != 'github action') && (github.ref == 'refs/heads/main') }}
needs:
- test-services
- docker-service
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct TranscodeController: RouteCollection {



return SubmitAnalyzingResultResponse(jobs: targetTranscodingJobs, createdAt: .now)
return SubmitAnalyzingResultResponse(jobs: targetTranscodingJobs, createdAt: Date())
}

}
Expand Down

0 comments on commit 39b6cd0

Please sign in to comment.