Skip to content

Commit

Permalink
begin setting up ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ekulno committed Feb 21, 2024
1 parent 734249b commit 5918694
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- "*"

jobs:
docker_build_and_publish:
name: Build and push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Push to Docker Hub
uses: docker/build-push-action@v1 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_REPOSITORY }}
tag_with_ref: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_ref
tag_with_sha: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_sha
tags: ${{ GITHUB_REF }}
helm_build_and_publish:
name: Build and push helm chart
runs-on: ubuntu-latest
steps: [ ]
update_gitops:
name: Update Gitops repo to use latest version
runs-on: ubuntu-latest
steps: [ ]
24 changes: 23 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# Ekul.no

Source of [ekul.no](https://ekul.no)
Source of [ekul.no](https://ekul.no).

To be upgraded to modern website, for the lols.

# CI

After upgrading to modern website:

- run linting
- run dependency scanning
- build typescript
- run unit tests

Until then, just this.

- build docker image
- publish docker image
- create helm chart
- publish helm chart
- trigger argocd pipeline

dev branch: dev.ekul.no
main branch: ekul.no

0 comments on commit 5918694

Please sign in to comment.