Skip to content

docs(buildah): add github actions host and docker runner docs #2500

docs(buildah): add github actions host and docker runner docs

docs(buildah): add github actions host and docker runner docs #2500

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
pull_request:
types: [ labeled, synchronize ]
workflow_dispatch:
env:
WERF_ENV: "production"
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio-guides"
WERF_STAGES_STORAGE: "ghcr.io/werf/werfio-guides-stages"
WERF_SET_ACTIVE_RELEASE: "global.active_release=2"
WERFIO_GITHUB_TOKEN: "${{ secrets.API_TOKEN }}"
jobs:
converge:
name: Deploy
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'test website') || contains(github.event.pull_request.labels.*.name, 'stage website')
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate artifacts
if: github.ref == 'refs/heads/main'
run: |
cd .werf/artifacts
bash generate_artifacts.sh
- name: Install werf
uses: werf/actions/install@v2
- name: Deploy to test
if: contains(github.event.pull_request.labels.*.name, 'test website')
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_NAMESPACE: "werfio-test"
WERF_RELEASE: "werfio-site-test"
WERF_LOG_VERBOSE: "on"
WERF_ENV: "test"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_DEV }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to stage
if: contains(github.event.pull_request.labels.*.name, 'stage website')
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_NAMESPACE: "werfio-stage"
WERF_RELEASE: "werfio-site-stage"
WERF_LOG_VERBOSE: "on"
WERF_ENV: "stage"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_DEV }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to production
if: github.ref == 'refs/heads/main'
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_NAMESPACE: "werfio-production"
WERF_RELEASE: "werfio-site-production"
WERF_LOG_VERBOSE: "on"
WERF_ENV: "production"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_PROD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
notification:
name: Notification
if: always()
needs: converge
runs-on: ubuntu-latest-4-cores
steps:
- uses: technote-space/workflow-conclusion-action@v2
- name: Notify
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ env.WORKFLOW_CONCLUSION }}
MSG_MINIMAL: "ref,actions url"