Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions #189

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .circleci/config.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on: [push]

env:
OTP_VERSION: 27.1.2
ELIXIR_VERSION: 1.17.3-otp-27
NERVES_BOOTSTRAP_VERSION: 1.13.0

permissions:
id-token: write
contents: read

jobs:
get-br-dependencies:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gridpoint-com/actions-nerves-system@v1
- name: Get Buildroot Dependencies
uses: ./.actions/get-br-dependencies
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
nerves-bootstrap-version: ${{ env.NERVES_BOOTSTRAP_VERSION }}
push-to-download-site: false
download-site-url: ${{ vars.PUBLIC_S3_SITE }}
download-site-bucket-uri: ${{ vars.S3_BUCKET }}
aws-role: ${{ secrets.AWS_ROLE }}
aws-region: ${{ vars.AWS_REGION }}
build-system:
needs: [get-br-dependencies]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gridpoint-com/actions-nerves-system@v1
- name: Build nerves_system
uses: ./.actions/build-system
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
nerves-bootstrap-version: ${{ env.NERVES_BOOTSTRAP_VERSION }}
deploy-system:
needs: [build-system]
if: github.ref_type == 'tag'
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: gridpoint-com/actions-nerves-system@v1
- name: Deploy nerves_system
uses: ./.actions/deploy-system
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading