Merge pull request #253 from rainlanguage/2024-11-07-nonce-manager #970
This file contains 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: Docker image CI | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Tag to give the build. Try to make it unique.' | |
required: true | |
env: | |
CHANNEL: ${{ inputs.tag || github.head_ref || github.ref_name }} | |
DOCKER_BUILDKIT: 1 | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
TAG_BASE: rainprotocol/arb-bot | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Prepare Sushi Lib | |
run: ./prep-sushi.sh | |
- uses: docker/setup-buildx-action@v2 | |
- uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- run: | | |
docker build -t "$TAG_BASE:$CHANNEL" --build-arg GIT_SHA=${{ github.sha }} --build-arg DOCKER_CHANNEL=$CHANNEL . | |
- run: | | |
docker push "$TAG_BASE:$CHANNEL" |