Skip to content

chore(deps): bump actions/download-artifact in /.github/workflows #221

chore(deps): bump actions/download-artifact in /.github/workflows

chore(deps): bump actions/download-artifact in /.github/workflows #221

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- "**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Runs a single command using the runners shell
- name: NPM install
run: npm install
- name: Build
run: npx vite build
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: dist
path: dist
- name: Build for Embedded
run: npx vite build
env:
VITE_EMBEDDED_BUILD: true
- name: Upload a Build Artifact for Embedded
uses: actions/[email protected]
with:
name: dist-embedded
path: dist
docker:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download Artifact from latest build
uses: actions/[email protected]
with:
name: dist
path: dist
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=edge
type=ref,event=branch
type=ref,event=pr
type=sha,prefix={{branch}}-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: .github/Dockerfile.githubactions
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}