Skip to content

ci: build platform also for arm64 #18

ci: build platform also for arm64

ci: build platform also for arm64 #18

Workflow file for this run

name: CI
on: [push]
jobs:
test:
strategy:
matrix:
version: ["20.04", "22.04", latest]
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: test against Ubuntu ${{ matrix.version }}
run: |-
UBUNTU_VERSION_TEST=${{ matrix.version }} make test
publish:
if: contains(github.ref, 'refs/heads/master')
needs: [test]
strategy:
matrix:
version: ["20.04", "22.04", latest]
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: push image to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ matrix.version }}
platforms: linux/amd64, linux/arm64
build-args:
- ubuntu_version=${{ matrix.version }}

Check failure on line 48 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 48, Col: 9): A sequence was not expected