Skip to content

Commit

Permalink
ci: readd workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Sep 21, 2023
1 parent e0fe5fc commit aaf055d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker CD
on:
push:
tags:
- "v*"
jobs:
docker-build-and-push:
name: Build Docker image and push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/untis-ics-sync:${{ env.RELEASE_VERSION }},${{ secrets.DOCKER_HUB_USERNAME }}/untis-ics-sync:latest
18 changes: 18 additions & 0 deletions .github/workflows/node-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node CI
on: [push, pull_request]
jobs:
node-build:
name: Install, lint, build and test
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- run: yarn install
- run: yarn lint
- run: yarn build

0 comments on commit aaf055d

Please sign in to comment.