Skip to content

fix: build

fix: build #6

name: 'build'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@v2
- name: Setup Docker buildx for multi-architecture builds
uses: docker/setup-buildx-action@v2
with:
use: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and run Dev Container task
uses: devcontainers/[email protected]
with:
subFolder: ./templates/react-native
imageName: ghcr.io/pnstack/codespace/react-native
platform: linux/amd64,linux/arm64
noCache: true
push: always