Skip to content

Commit

Permalink
chore: get rid of Docker Build Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Feb 12, 2025
1 parent b8bb684 commit 1e8bbfe
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: "lab:latest"
driver: cloud
endpoint: "opentrader/cloud"
- name: Build Docker Image
run: >-
docker build
--build-arg ADMIN_PASSWORD=password
--build-arg GITHUB_TOKEN=${{ secrets.PRO_GITHUB_TOKEN }}
-f pro.Dockerfile
-t opentrader/opentrader:latest .
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: pro.Dockerfile
push: true
tags: opentrader/opentrader:latest
build-args: |
ADMIN_PASSWORD=password
GITHUB_TOKEN=${{ secrets.PRO_GITHUB_TOKEN }}
# For pull requests, export results to the build cache.
# Otherwise, push to a registry.
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}
- name: Push Docker Image
run: docker push opentrader/opentrader:latest

0 comments on commit 1e8bbfe

Please sign in to comment.