Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

chore(deps): bump ejs from 3.1.8 to 3.1.10 in /client (#79) #71

chore(deps): bump ejs from 3.1.8 to 3.1.10 in /client (#79)

chore(deps): bump ejs from 3.1.8 to 3.1.10 in /client (#79) #71

Workflow file for this run

name: publish
on:
push:
branches: ['master','main']
tags: ['v*.*.*']
concurrency: ${{ github.ref }}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-amd64:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: qemu
uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: login
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v3
with:
flavor: |
latest=false
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# Semantic versioning from our tags
type=semver,pattern={{version}}
# tag the sha version unless we are a git tag
type=sha,enable=${{ !startsWith(github.ref, 'refs/tags/v') }},priority=300,format=long,prefix=
- id: meta-arch
uses: docker/metadata-action@v3
with:
flavor: |
latest=false
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# Semantic versioning from our tags
type=semver,pattern={{version}}
# Branch
type=ref,event=branch
# tag the sha version unless we are a git tag
type=sha,enable=${{ !startsWith(github.ref, 'refs/tags/v') }},priority=300,format=long,prefix=
- name: update version
run: |
echo "const version = \"${{ steps.meta.outputs.version }}\";" > client/src/version.ts
echo "export default version;" >> client/src/version.ts
- name: push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta-arch.outputs.tags }}
labels: ${{ steps.meta-arch.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
# TEMP fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache