Skip to content

vps infra fixes

vps infra fixes #51

---
name: Create and publish docker images
on:
push:
branches:
- master
jobs:
publish-app:
runs-on: ubuntu-latest
steps:
-
name: checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: ./app
tags: |
omdv/ib-trading-app-demo:latest
ghcr.io/omdv/ib-trading-app-demo:latest