2 Commits

Author SHA1 Message Date
Eric Van Hensbergen
3888a2a45a Switch Docker CI from gitlab to github
Adds buildx signing and helm chart publication.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2022-11-07 13:43:50 -06:00
Alexandre Peixoto Ferreira
3b4636fa30 Remove namespace so helm install it (#4)
* Remove namespace so helm install it

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>

* Fix nodeSelector (Bug #9027 helm)

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>
2022-11-07 12:45:38 -06:00
9 changed files with 66 additions and 202 deletions

View File

@@ -14,7 +14,8 @@ on:
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
@@ -50,12 +51,6 @@ jobs:
name: Set up QEMU
uses: docker/setup-qemu-action@v2
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.2.1
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
@@ -65,27 +60,35 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.2.1
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
#- name: Build
# run: |
# docker build --platform "linux/amd64,linux/arm64" --push . --file Dockerfile --tag ${{ steps.meta.outputs.tags }} --tag ${{ steps.meta.outputs.labels }} # will run buil
# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker

46
.github/workflows/helm.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
# release.yaml
name: Release Charts
on:
push:
branches:
- main
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 "$GITHUB_ACTOR@users.noreply.github.com"
# Optional step if GPG signing is used
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
echo "sign: true" > cr.yaml
echo "key: Smarter Project" >> cr.yaml
env:
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.1
with:
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -1,8 +1,8 @@
apiVersion: v2
name: smarter-device-manager
description: smarter-device-manager chart for SMARTER edge devices
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
version: 0.0.3
home: https://github.com/smarter-device-manager
version: 0.0.6
appVersion: v1.20.11
kubeVersion: ">=1.16.0-0"
keywords:
@@ -10,11 +10,7 @@ keywords:
- device
- hardware
sources:
- https://gitlab.com/smarter-project/smarter-device-manager
#dependencies:
# - name: smarter-common
# repository: https://gitlab.com/smarter-project/documentation
# version: 0.0.1
- https://github.com/smarter-project/smarter-device-manager
annotations:
artifacthub.io/changes: |
@@ -26,5 +22,5 @@ annotations:
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 82AD709FEC4ECA4C84B093889BDC9DE410CFC23B
url: https://keybase.io/alexandref75/pgp_keys.asc
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc

View File

@@ -4,7 +4,7 @@ application:
appName: smarter-device-manager
image:
repository: registry.gitlab.com/smarter-project/smarter-device-manager
repository: ghcr.io/smarter-project/smarter-device-manager:v1.20.11
# @default -- chart.appVersion
tag: ""
pullPolicy: IfNotPresent

View File

@@ -1,181 +0,0 @@
apiVersion: v1
entries:
smarter-device-manager:
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.12
created: "2022-11-22T14:42:55.980442932Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: 9550de7af8b37ca7645c6b0db99a1e71ec3e2ee28f0e128b0daa09e1d8f34b45
home: https://getsmarter.io
icon: https://github.com/smarter-project/documentation/raw/main/ARM1636_Project_Logo_ST2_RGB_V1.png
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://github.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.9/smarter-device-manager-0.0.9.tgz
version: 0.0.9
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.11
created: "2022-11-16T20:55:06.650821157Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: e078454a543055896cd3a67c287a820e9595e6f56eb47db4ddbff77203f86d5f
home: https://getsmarter.io
icon: https://github.com/smarter-project/documentation/raw/main/ARM1636_Project_Logo_ST2_RGB_V1.png
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://github.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.8/smarter-device-manager-0.0.8.tgz
version: 0.0.8
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.11
created: "2022-11-07T19:56:15.435518519Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: 8d94e673a9302af53230a1e1d39dbedea111e08e63d03969079d566534dda725
home: https://getsmarter.io
icon: https://gitlab.com/uploads/-/system/group/avatar/59012546/ARM1636_Project_Logo_ST2_RGB_V1.png
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://github.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.7/smarter-device-manager-0.0.7.tgz
version: 0.0.7
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.11
created: "2022-11-07T19:44:10.642325237Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: 53fd6d0507516880af0535c4f1944310e743e670da2426597a1d3ec12b556dc9
home: https://github.com/smarter-device-manager
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://github.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.6/smarter-device-manager-0.0.6.tgz
version: 0.0.6
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 71EDA4E3D652DC73EB09E3A5387D298C169CF24E
url: https://smarter-project.github.io/documentation/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.11
created: "2022-11-07T19:35:56.132977927Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: 94189b7b88ae07c91ec98672c87c9883b233dbfdbd68c853aa86ac4b49b6aec4
home: https://github.com/smarter-device-manager
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://github.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.5/smarter-device-manager-0.0.5.tgz
version: 0.0.5
- annotations:
artifacthub.io/changes: |
- Fix template
- Add annotations
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alexandre Ferreira
email: alexandref75@gmail.com
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 82AD709FEC4ECA4C84B093889BDC9DE410CFC23B
url: https://keybase.io/alexandref75/pgp_keys.asc
apiVersion: v2
appVersion: v1.20.11
created: "2022-11-07T18:52:52.020327868Z"
description: smarter-device-manager chart for SMARTER edge devices
digest: 2eab7b2ac3aa00e0e4f05dcb91c71fe8095ed1700a6540f5797e44f63f185d6a
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
keywords:
- kubernetes
- device
- hardware
kubeVersion: '>=1.16.0-0'
name: smarter-device-manager
sources:
- https://gitlab.com/smarter-project/smarter-device-manager
urls:
- https://github.com/smarter-project/smarter-device-manager/releases/download/smarter-device-manager-0.0.4/smarter-device-manager-0.0.4.tgz
version: 0.0.4
generated: "2022-11-22T14:42:55.980469032Z"