Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test docker-build.yaml #1

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/backport.yaml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/build-main-self-hosted.yaml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-main.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/cancel-previous-workflows.yaml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/docker-build-and-push-main.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: docker-build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Free disk space
uses: ./.github/actions/free-disk-space

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:latest

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/youtalk/autoware

- name: Build and push with Buildx Bake
uses: docker/bake-action@v4
with:
context: .
push: true
files: |
docker/autoware-openadk/docker-bake.hcl
targets: |
default
set: |
*.platform=linux/amd64
*.args.ROS_DISTRO=humble
*.args.BASE_IMAGE=ros:humble-ros-base-jammy
*.args.LIB_DIR=x86_64

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Loading
Loading