Skip to content

install autoconf in pipeline #35

install autoconf in pipeline

install autoconf in pipeline #35

Workflow file for this run

name: Deploy Staging
on:
push:
branches:
- "staging"
pull_request:
types:
- labeled
- synchronize
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
# if the pull request was labeled with 'deploy-staging', run the job
# or if the staging branch was pushed to, run the job
if: github.event_name == 'push' || github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy-staging')
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=stage
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NODE_ENV=production
DOCUSAURUS_URL=https://stage.youngfounders.network/
DOCUSAURUS_BASE_URL=https://stage.youngfounders.network/roadmap/
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- run: echo ${{ secrets.GH_WORKFLOW_DISPATCH_TOKEN }}
- name: Workflow Dispatch
uses: benc-uk/[email protected]
with:
workflow: deploy-stage.yml
repo: yfndev/yfn-deployment
token: ${{ secrets.GH_WORKFLOW_DISPATCH_TOKEN }}
ref: main