Skip to content

Perps Companion Docker Image #88

Perps Companion Docker Image

Perps Companion Docker Image #88

Workflow file for this run

name: Perps Companion Docker Image
on:
workflow_dispatch:
schedule:
# For cache, run at 9 AM UTC every 5th day of month
- cron: "0 9 */5 * *"
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
jobs:
companion-image:
runs-on: ubuntu-latest
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.71.0
components: rustfmt, clippy
targets: x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
- name: Dependencies
run: sudo apt install musl-tools -y
- name: Build companion binary
run: just cargo-companion-release
- name: Download health-check
run: just download-health-check
env:
LEVANA_DEVOPS_REPO_PAT: ${{ secrets.LEVANA_DEVOPS_REPO_PAT }}
- name: Build image
run: just build-companion-image
- name: Push image
run: just push-companion-image
if: ${{ github.event_name != 'schedule' }}