Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci, tilt, documentation and config updates #12

Merged
merged 7 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
!**/*.go
!**/*.mod
!**/*.sum

testbin/
44 changes: 44 additions & 0 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docker Image CI

on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Metadata action
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/pokt-network/pocket-operator
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
29 changes: 3 additions & 26 deletions .operator-builder/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
INIT_OPTS=init \
--workload-config .operator-builder/workload.yaml \
--repo github.com/pokt-network/pocket-operator \
--controller-image pokt-network/pocket-operator:latest \
--controller-image ghcr.io/pokt-network/pocket-operator:latest \
--skip-go-version-check

CREATE_OPTS=create api \
Expand All @@ -10,36 +10,13 @@ CREATE_OPTS=create api \
--resource# \
#--force

# TMP_DIR=../.tmp-operator/pocket-operator

# MOVE_EXCEPTIONS_REGEX=README.md|.gitignore|^\.$$|^\.\.$$

operator-clean:
rm -rf ../*

operator-init:
cd .. && operator-builder $(INIT_OPTS)

operator-create:
cd .. && operator-builder $(CREATE_OPTS)

# operator-move-files:
# # ls -a $(TMP_DIR) | grep -Ev '($(MOVE_EXCEPTIONS_REGEX))'
# FILES=$(cd $(TMP_DIR) && ls -a | grep -Ev '($(MOVE_EXCEPTIONS_REGEX))')
# echo $(FILES)
# # cd $(TMP_DIR) && mv $(ls -a | grep -Ev '($(MOVE_EXCEPTIONS_REGEX))') ../
operator-build:
bash rebuild.sh

operator-dependencies:
kubectl apply -f dependencies

operator-samples:
cp samples/* ../config/samples/

checkout:
git checkout \
../CONTRIBUTING.md \
../LICENSE.md \
../README.md \
../.gitignore \
../Tiltfile

67 changes: 0 additions & 67 deletions .operator-builder/hack/update-db-pass.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .operator-builder/hack/validators

This file was deleted.

Loading