Skip to content

Perps Deploy Docker Image #285

Perps Deploy Docker Image

Perps Deploy Docker Image #285

Workflow file for this run

name: Perps Deploy Docker Image
on:
workflow_dispatch:
schedule:
# For cache, run at 9 AM UTC daily
- cron: "0 9 * * *"
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
jobs:
perps-deploy-image:
runs-on: ubuntu-latest
concurrency:
group: ci-perps-deploy-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: [email protected],[email protected]
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.81.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 perps-deploy binary
run: just cargo-perps-deploy-release
- name: Build image
run: just build-perps-deploy-image
- name: Push image
run: just push-perps-deploy-image
if: ${{ github.event_name != 'schedule' }}