Skip to content

Address various issues through the use of Cargo deny. (#862) #118

Address various issues through the use of Cargo deny. (#862)

Address various issues through the use of Cargo deny. (#862) #118

Workflow file for this run

name: Build and push runner image
on:
push:
branches:
- "main"
paths:
- "docker/runner.Dockerfile"
- "docker/runner.Dockerfile.dockerignore"
- ".github/workflows/build-runner.yaml"
pull_request:
paths:
- "docker/runner.Dockerfile"
- "docker/runner.Dockerfile.dockerignore"
- ".github/workflows/build-runner.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
push_to_registry:
name: Build and push runner image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: "🔧 Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Copy docker image dependencies"
run: cp pyproject.toml requirements.lock requirements-dev.lock .python-version README.md rust-toolchain.toml docker/
shell: bash
- name: Build and push Docker image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: ./docker
file: ./docker/runner.Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/dfinity/dre/actions-runner:${{ github.sha }}