Fix for some additional BTC contracts when calculating market trend #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push Docker Image | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to GitHub Docker Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and tag Docker image | |
| run: | | |
| IMAGE_NAME=ghcr.io/rustycz/pbdori | |
| TAG=${{ github.ref_name }} | |
| docker build --file=./PbDori/Dockerfile -t $IMAGE_NAME:$TAG . | |
| docker tag $IMAGE_NAME:$TAG $IMAGE_NAME:latest | |
| - name: Push Docker image | |
| run: | | |
| IMAGE_NAME=ghcr.io/rustycz/pbdori | |
| TAG=${{ github.ref_name }} | |
| docker push $IMAGE_NAME:$TAG | |
| docker push $IMAGE_NAME:latest |