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

Commit

Permalink
Build continuously
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Dec 4, 2023
1 parent cb75c44 commit e954299
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 93 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Continuous Integration

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
run: yarn

- name: Lint
run: yarn lint

- name: Typecheck
run: yarn tsc

- name: Test
run: yarn test

- name: Build
run: yarn build

cd:
name: Continuous Deployment
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04

needs:
- ci

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:master

- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push app to GitHub Packages
uses: docker/build-push-action@v5
with:
file: Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
93 changes: 0 additions & 93 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit e954299

Please sign in to comment.