Skip to content

Commit

Permalink
feat: add basic github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Nov 21, 2023
1 parent f236937 commit f52d4ef
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/werf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI Workflow (werf)

on:
push:
branches:
- ci/werf

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install Docker Compose
uses: docker/compose-action@v1

# this might not be needed anymore
- name: Enable BuildKit
run: echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV

- name: Install asdf
uses: asdf-vm/actions/[email protected]

- name: Install asdf plugins & packages
run: |
asdf plugin add werf https://github.com/MxNxPx/asdf-werf.git
asdf plugin update --all
asdf install
- name: Provision kind Kubernetes cluster
run: |
curl -Lo /tmp/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
chmod +x /tmp/kind
/tmp/kind create cluster
- name: Run make ci
run: |
source "$(werf ci-env github --as-file)"
make ci
env:
WERF_ENV: demo

0 comments on commit f52d4ef

Please sign in to comment.