mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:36:38 +00:00
Deprecated action `crazy-max/setup-buildx-action@v1` has been replaced with: `docker/setup-qemu-action@v1` `docker/setup-buildx-action@v1` `docker/login-action@v1` `docker/build-push-action@v2` See: https://github.com/crazy-max/ghaction-docker-buildx
41 lines
940 B
YAML
41 lines
940 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- "runner/**"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: release-latest
|
|
env:
|
|
DOCKERHUB_USERNAME: ${{ github.repository_owner }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
version: latest
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
file: Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest
|
|
|