Skip to content

Merge branch 'release/2.40.0' into main #119

Merge branch 'release/2.40.0' into main

Merge branch 'release/2.40.0' into main #119

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Live
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create env file
run: |
cat << EOF >> .env.production.local
${{ secrets.ENV_FILE }}
EOF
- # Login against GitHub Container Registry
name: Log in to GitHub Container Registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- # Build and push Docker image
name: Build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
push: true
tags: ghcr.io/harmlesskey/harmlesskey
cache-from: type=gha,scope=live
cache-to: type=gha,scope=live,mode=max