Skip to content

Commit

Permalink
Merge pull request #1 from gofireflyio/flytube-ci
Browse files Browse the repository at this point in the history
add ci for docker image and helm
  • Loading branch information
eran-infralight authored May 19, 2023
2 parents f881b61 + 8f3d6af commit 14de690
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/workflow.flytube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Flytube Image
on:
workflow_dispatch:
inputs:
flytubetag:
description: 'Version Tag for the Flytube Docker Image'
required: true
default: '1.0.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get current time
uses: gerred/actions/current-time@master
id: current-time

- name: Build and push image to prod
uses: docker/build-push-action@v2
with:
push: true
tags: |
infralightio/flytube:${{ github.event.inputs.flytubetag }}
infralightio/flytube:latest
labels: |
org.opencontainers.image.created=${{ steps.current-time.outputs.time }}
org.opencontainers.image.authors=Infralight
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ github.event.inputs.flytubetag }}
- name: Slack Notification
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://assets-global.website-files.com/5d514fd9493b0575f03520bd/5d8e0b39fd776a3c238e8753_icons8_infinity_large_filled_2.svg
SLACK_MESSAGE: "K8s Collector image pushed to infralightio/flytube:${{ github.event.inputs.flytubetag }}"
SLACK_TITLE: "K8s Collector image pushed to infralightio/flytube:${{ github.event.inputs.flytubetag }}"
SLACK_USERNAME: cicdBot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
31 changes: 31 additions & 0 deletions .github/workflows/workflow.helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Charts

on:
push:
branches:
- main
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.idea/0
.idea/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 14de690

Please sign in to comment.