Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Build

Build #814

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
trigger:
strategy:
matrix:
include:
- context: alpine
args: |
ALPINE_VERSION=3.17
tags: |
nightly-alpine3.17
nightly-alpine
- context: alpine
args: |
ALPINE_VERSION=3.16
tags: |
nightly-alpine3.16
- context: debian
args: |
DEBIAN_VERSION=bookworm
tags: |
nightly-bookworm
- context: debian
args: |
DEBIAN_VERSION=bullseye
tags: |
nightly
nightly-bullseye
- context: debian
args: |
DEBIAN_VERSION=buster
tags: |
nightly-buster
- context: debian-slim
args: |
DEBIAN_VERSION=bookworm
tags: |
nightly-bookworm-slim
- context: debian-slim
args: |
DEBIAN_VERSION=bullseye
tags: |
nightly-slim
nightly-bullseye-slim
- context: debian-slim
args: |
DEBIAN_VERSION=buster
tags: |
nightly-buster-slim
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
username: rustopsbot
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/rust-lang/rust
rustlang/rust
tags: ${{ matrix.tags }}
- uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
build-args: ${{ matrix.args }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}