build: Add linux/amd64,linux/arm64 builds #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
tags: | |
- 18-2.6.6 | |
- 20-2.6.6 | |
- 20-2.6.8 | |
- 20-2.6.9 | |
- 20-2.6.10 | |
- 20-2.7.4 | |
- 20-2.7.5 | |
- 20-2.7.6 | |
- 20-2.7.7 | |
- 20-2.7.8 | |
- 20-3.0.2 | |
- 20-3.0.3 | |
- 20-3.1.2 | |
- 22-3.1.2 | |
- 22-3.1.4 | |
- 22-3.2.2 | |
- 22-3.2.4 | |
- 24-3.2.2 | |
- 24-3.2.4 | |
- 24-3.3.4 | |
steps: | |
# Checkout this repo | |
# https://github.com/actions/checkout | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
# Add support for more platforms with QEMU (optional) | |
# https://github.com/docker/setup-qemu-action | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
# Set up Docker Buildx | |
# https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Login against a Docker registry | |
# https://github.com/docker/login-action | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: rnters-bot | |
password: ${{ secrets.GH_ACTIONS_PAT }} | |
# Build and push Docker image with Buildx | |
# https://github.com/docker/build-push-action | |
- name: Build and push ${{ matrix.ruby }} | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.tags }}/. | |
no-cache: true | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: ghcr.io/flecto-io/heroku-rails:${{ matrix.tags }} |