Skip to content

Commit

Permalink
fix: update docker build halotrade
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Dec 4, 2023
1 parent 79a326f commit 55fb275
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker_build_halotrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Development Docker image

on:
workflow_dispatch:
push:
branches: [feat/add-halotrade]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set environment variable
run: |
SHORT_SHA_COMMIT=$(git rev-parse --short HEAD)
echo CONTAINER_RELEASE_IMAGE=ghcr.io/aura-nw/hummingbot-gateway:halotrade_supported_${SHORT_SHA_COMMIT} >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.CONTAINER_RELEASE_IMAGE }}

0 comments on commit 55fb275

Please sign in to comment.