Skip to content

build(deps): bump serve-static and express #3086

build(deps): bump serve-static and express

build(deps): bump serve-static and express #3086

Workflow file for this run

name: ci
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Repo metadata
id: repo
uses: actions/[email protected]
with:
script: |
const repo = await github.rest.repos.get(context.repo)
return repo.data
- name: Prepare
id: prep
run: |
echo ::set-output name=docker-image::localhost:5000/${{ github.event.repository.full_name }}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
with:
version: latest
driver-opts: network=host
- name: Build and push
id: docker-build
uses: docker/[email protected]
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
tags: ${{ steps.prep.outputs.docker-image }}:${{ github.sha }}
labels: |
org.opencontainers.image.title=${{ fromJson(steps.repo.outputs.result).name }}
org.opencontainers.image.description=${{ fromJson(steps.repo.outputs.result).description }}
org.opencontainers.image.url=${{ fromJson(steps.repo.outputs.result).html_url }}
org.opencontainers.image.source=${{ fromJson(steps.repo.outputs.result).clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
cache-from: type=gha
cache-to: type=gha,mode=max