Skip to content

Optimize order

Optimize order #148

Workflow file for this run

name: Build Docker
# Controls when the action will run. Triggers the workflow for a pull request for
# master when the Dockerfile or renv.lock file changes.
on:
pull_request:
branches:
- master
paths:
- Dockerfile
- renv.lock
push:
branches:
- jashapiro/docker-update
paths:
- Dockerfile
- renv.lock
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
push: false
context: .
file: Dockerfile
tags: ccdl/training_dev:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max