Skip to content

Docker

Docker #224

Workflow file for this run

name: Docker
permissions:
contents: read
packages: write
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
commit_sha:
description: Git commit sha, on which, to run this workflow
jobs:
build-and-push:
name: Docker - build-and-push-image
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.inputs.commit_sha }}
- name: Set up docker buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
- name: Log in to github's container registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the docker image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: tools/docker/dev/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/build-trust/autonomy-builder:latest
ghcr.io/build-trust/autonomy-builder:${{ github.sha }}