Skip to content

chore(deps): update dependency node to v18 - autoclosed #2245

chore(deps): update dependency node to v18 - autoclosed

chore(deps): update dependency node to v18 - autoclosed #2245

Workflow file for this run

name: Preview
on:
pull_request:
types: [labeled, synchronize, opened, reopened]
jobs:
build-preview-image:
runs-on: ubuntu-20.04
if: ${{ contains(github.event.pull_request.labels.*.name, 'preview') }}
steps:
- uses: actions/checkout@v4
- name: Get sha with 8 chars long
id: commit_sha
run: echo "commit_sha=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64
tags: |
ghcr.io/elifesciences/enhanced-preprints:preview-${{ steps.commit_sha.outputs.commit_sha }}
ghcr.io/elifesciences/enhanced-preprints-server:preview-${{ steps.commit_sha.outputs.commit_sha }}