Skip to content

Update blocks.png

Update blocks.png #9

Workflow file for this run

name: Deploy to GitHub Container Registry
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/[email protected]
with:
package_json_file: 'frontend/package.json'
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'frontend/.nvmrc'
registry-url: https://npm.pkg.github.com/
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }}
- name: Get version
id: get_version
run: |
VERSION=$(grep 'version' pyproject.toml | awk -F' = ' '{print $2}' | tr -d '"')
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build frontend
run: |
make install-fe
make build-frontend
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/rpiremoteserver:${{ steps.get_version.outputs.VERSION }}
ghcr.io/${{ github.repository_owner }}/rpiremoteserver:latest
- name: Log out from GitHub Container Registry
run: docker logout ghcr.io
- name: Create and push git tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git tag ${{ steps.get_version.outputs.VERSION }}
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ steps.get_version.outputs.VERSION }}