Skip to content

Commit

Permalink
Create action to build images
Browse files Browse the repository at this point in the history
  • Loading branch information
Typhonragewind authored Jun 22, 2023
1 parent 086c241 commit b93a642
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Images

on:
schedule:
- cron: "0 16 * * 6"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to dockerhub
run: echo "${{ secrets.DOCKERHUB_KEY }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: build the images
run: |
docker buildx build --push \
--tag typhonragewind/meshcentral:test \
--tag typhonragewind/meshcentral:test_$(npm show meshcentral version)
--platform linux/amd64,linux/arm/v7,linux/arm64 /builds/regular

0 comments on commit b93a642

Please sign in to comment.