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

[pull] master from bitnami:master #38

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
76e2a0a
Update debian versions
Jun 20, 2022
5f9b294
Merge pull request #124 from bitnami/updateversions
Jun 20, 2022
373a9a0
Use buster for minideb snapshot
Jun 20, 2022
6f2f721
Merge pull request #125 from bitnami/snapshot
Jun 20, 2022
f5901de
Allow snapshot image to be different than latest
Jun 21, 2022
4e14781
Merge pull request #126 from bitnami/snapshot
Jun 21, 2022
cf730db
Fix snapshot push and remove unused quay creds
Jun 21, 2022
cea4415
Merge pull request #127 from bitnami/snapshot
Jun 21, 2022
f864c9f
Don't build/publish minideb in GCR
Jun 29, 2022
72c463d
Remove gcloud installation
Jun 29, 2022
32362b6
Merge pull request #128 from bitnami/gcr
Jun 30, 2022
0482e1f
WIP #129: Unable to build Minideb for ARM64 foreign architecture
basictheprogram Jul 7, 2022
b7ff797
Merge pull request #130 from basictheprogram/master
gongomgra Jul 25, 2022
1f6f3e7
Revert "WIP #129: Unable to build Minideb for ARM64 foreign architect…
gongomgra Jul 25, 2022
bc62c1e
Merge pull request #131 from bitnami/revert-130-master
gongomgra Jul 25, 2022
73bd548
Replace bitnami-docker-* URLs by the equivalent bitnami/containers ones
Jul 26, 2022
57ef6ab
Use Ubuntu 22.04 for GitHub Actions runners instead of 20.04.
sengi Aug 26, 2022
d418e82
Remove the workaround for qemu/+bug/1749393.
sengi Aug 26, 2022
a746dae
Merge pull request #133 from sengi/ci-on-ubuntu-jammy
Sep 14, 2022
8a9c383
Adding the ability to assign to a team member of the containers triag…
Sep 14, 2022
fa2e0bc
Adding fmulero's feedback
Sep 14, 2022
da01be1
Merge pull request #136 from bitnami/feature/support-notification
Sep 14, 2022
064761b
ci(snapshot_id): Fix URL escaping (#138)
aruiz14 Nov 3, 2022
a9d9039
Remove snapshot logic
Nov 3, 2022
f97e105
Bump actions/checkout version from v2 to v3
Nov 3, 2022
1bfbb8f
Merge pull request #139 from bitnami/removeSnapshot
Nov 3, 2022
d995b9f
Merge pull request #140 from bitnami/actions/checkout
Nov 3, 2022
6670e30
Update README.md
Jan 8, 2023
124d613
Update LICENSE.md
Jan 8, 2023
a23e134
Create CODE_OF_CONDUCT.md
Jan 8, 2023
f76392a
Update LICENSE.md
Jan 8, 2023
b81207c
Create CONTRIBUTING.md
Jan 8, 2023
1299ee2
[CONTENT-3783] Configure Slack alerts for CI failures in bitnami/minideb
ClaaudiaGarcia Apr 24, 2023
e328737
[CONTENT-3783] Configure Slack alerts for CI failures in bitnami/minideb
ClaaudiaGarcia Apr 24, 2023
e434f14
[CONTENT-3783] Use slack webhook url instead of token
ClaaudiaGarcia Apr 27, 2023
113044f
[CONTENT-3783] Fix slack webhook url variable naming
ClaaudiaGarcia Apr 27, 2023
44f4625
[CONTENT-3783] Test new slack payload
ClaaudiaGarcia Apr 27, 2023
658502b
[CONTENT-3783] Correct indentation
ClaaudiaGarcia Apr 27, 2023
4c7936b
[CONTENT-3783] Test message
ClaaudiaGarcia Apr 27, 2023
82d24d4
[CONTENT-3783] Point to the correct webhook
ClaaudiaGarcia Apr 27, 2023
8bbff39
Merge pull request #144 from bitnami/feature/CONTENT-3783
ClaaudiaGarcia Apr 28, 2023
6faffd5
Create SECURITY.md
May 24, 2023
1319a5f
Update README.md
Jun 1, 2023
51ac5ee
Update README.md
Jun 2, 2023
04c8a20
Add support for Debian 12 bookworm
joancafom Jun 12, 2023
a17be02
Remove debootrsap from unsupported/old versions making buster the new…
Jun 13, 2023
489416e
Remove unstable mentions and always add security repo to sources
Jun 13, 2023
6f2f618
Remove custom keys. They were only used in two versions and not in ot…
Jun 13, 2023
b108d75
Change security repo url
Jun 13, 2023
bfa675e
Merge pull request #150 from bitnami/cleanup
Jun 14, 2023
32eaab1
Merge branch 'master' into add-bookworm-support
Jun 14, 2023
4774b16
Use buster for debootstrap
joancafom Jun 14, 2023
3b6f687
Update security repo URLs
joancafom Jun 14, 2023
cf60555
Merge pull request #149 from bitnami/add-bookworm-support
joancafom Jun 14, 2023
fa2ff15
🔄 synced local '.github/workflows/' with remote 'workflows/' (#153)
Nov 29, 2023
c00957b
🔄 synced local '.github/workflows/' with remote 'workflows/' (#154)
Nov 29, 2023
18f5d34
🔄 synced local '.github/workflows/' with remote 'workflows/' (#155)
Dec 5, 2023
1d1a435
🔄 synced local '.github/workflows/' with remote 'workflows/' (#156)
Dec 7, 2023
179e8df
refactor(qemu): improve qemu deps (#152)
BlackHole1 Dec 19, 2023
d4dc1ad
🔄 synced local '.github/workflows/' with remote 'workflows/' (#157)
Dec 19, 2023
155fad7
🔄 synced local '.github/workflows/' with remote 'workflows/' (#158)
Dec 19, 2023
eaaba7c
🔄 synced local '.github/workflows/' with remote 'workflows/' (#159)
Jan 2, 2024
dda86ee
Update README.md
Jan 2, 2024
43e6d05
🔄 synced local '.github/workflows/' with remote 'workflows/' (#161)
Mar 13, 2024
74e7b8c
Delete .github/workflows/migration.yml
fmulero Mar 13, 2024
da5ba16
Update README.md
Mar 15, 2024
122cd7c
Update README.md
Mar 15, 2024
8922522
Change license header and copyright (#163)
May 6, 2024
7c614ee
🔄 synced local '.github/workflows/' with remote 'workflows/' (#162)
May 6, 2024
574527a
🔄 synced local '.github/workflows/' with remote 'workflows/' (#164)
May 29, 2024
a76f97d
Deprecate Debian 10 (#165)
Jul 1, 2024
115d8ef
🔄 synced local '.github/workflows/' with remote 'workflows/' (#166)
Jul 9, 2024
33db0aa
🔄 synced local '.github/workflows/' with remote 'workflows/' (#169)
Aug 7, 2024
80b9b0c
README: Fix wording (#172)
orgads Oct 10, 2024
fb66c35
mkimage: Remove device nodes (#173)
cgwalters Oct 23, 2024
f8bf1d1
🔄 synced local '.github/workflows/' with remote 'workflows/' (#170)
Nov 20, 2024
20d85d4
🔄 synced local '.github/workflows/' with remote 'workflows/' (#176)
Dec 18, 2024
fa88a8a
Create dependabot.yml
Jan 8, 2025
8a20ea7
Bump slackapi/slack-github-action from 1.23.0 to 2.0.0 (#177)
dependabot[bot] Jan 8, 2025
8ae3c4a
Bump actions/checkout from 3 to 4 (#178)
dependabot[bot] Jan 8, 2025
60ee9f5
Bump actions/upload-artifact from 4.5.0 to 4.6.0 (#180)
dependabot[bot] Jan 13, 2025
52d8486
🔄 synced local '.github/workflows/' with remote 'workflows/' (#179)
Jan 17, 2025
d702489
Only push images from bitnami/minideb repository (#147)
jerrykan Jan 21, 2025
f9602b9
Only run scheduled jobs on bitnami/minideb repo (#148)
jerrykan Jan 21, 2025
ab13528
Update copyright year
carrodher Jan 31, 2025
bf5ee09
github-actions: Add gchat notification (#181)
migruiz4 Feb 10, 2025
0b1cf02
🔄 synced local '.github/workflows/' with remote 'workflows/' (#183)
Feb 10, 2025
0a41ed3
🔄 synced local '.github/workflows/' with remote 'workflows/' (#184)
Feb 10, 2025
5d96c90
🔄 synced local '.github/workflows/' with remote 'workflows/' (#185)
Feb 11, 2025
286f3aa
Bump actions/upload-artifact from 4.6.0 to 4.6.1 (#187)
dependabot[bot] Feb 24, 2025
5ae1e6c
🔄 synced local '.github/workflows/' with remote 'workflows/' (#186)
Feb 25, 2025
40bc265
feature(aws-gallery): Publish minideb images to AWS ECR public Galler…
fmulero Mar 5, 2025
a0a8b83
fix(workflow/cd): Fix typo (#189)
fmulero Mar 5, 2025
edca393
🔄 synced local '.github/workflows/' with remote 'workflows/' (#190)
bitnami-bot Mar 20, 2025
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
58 changes: 3 additions & 55 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
inputs:
dist:
description: 'Dist to build'
default: 'buster'
default: 'bookworm'
platform:
description: 'Platform to build'
default: 'amd64'
is_latest:
description: The created dist is also latest
default: false
build_snapshot:
description: Build snapshot build
default: false
outputs:
snapshot-id:
description: "Created snapshot id if requested to build it"
value: ${{ steps.snapshot-id.outputs.snapshot-id }}
runs:
using: "composite"
steps:
Expand All @@ -26,66 +19,21 @@ runs:
shell: bash
- run: sudo make .installed-requirements
shell: bash
- name: Install gcloud
run: |
if ! command -v gcloud &> /dev/null
then
echo "Installing gcloud"
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

apt-get update
apt-get install -y google-cloud-sdk
else
echo "gcloud is installed"
fi
shell: bash
- name: "Install QEMU"
run: |
set -x
if [[ "${{ inputs.platform }}" == "arm64" ]]; then
echo "Installing QEMU"
# qemu-user-static fails with segfaults building bullseye
# We will revisit this when 20.10 is allowed as build slave on GitHub Actions
# https://bugs.launchpad.net/qemu/+bug/1749393
# https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1928075
if [[ "${{ inputs.dist }}" == "bullseye" ]]; then
sudo tee /etc/apt/preferences.d/qemu <<EOF
Package: *
Pin: release n=focal
Pin-Priority: 900
Package: *
Pin: release n=hirsute
Pin-Priority: 400
EOF
sudo tee /etc/apt/sources.list.d/hirsute.list <<EOF
deb http://archive.ubuntu.com/ubuntu hirsute universe
deb http://archive.ubuntu.com/ubuntu hirsute-updates universe
deb http://security.ubuntu.com/ubuntu hirsute-security universe
EOF
sudo apt-get update -qq && sudo apt-get install -y -t hirsute qemu-user-static
else
sudo apt-get update -qq && sudo apt-get install -y qemu-user-static
fi
sudo apt-get update -qq && sudo apt-get install -y qemu-user-static
else
echo "QEMU is not required for platform ${{ inputs.platform }}"
fi
shell: bash
- name: Build snapshot id
id: snapshot-id
run: |
if ${{ inputs.build_snapshot }} ; then
echo "::set-output name=snapshot-id::$(./snapshot_id)"
echo "QEMU is not required for platform ${{ inputs.platform }}"
fi
shell: bash
- name: "Build image"
run: |
set -x
echo Building ${{ inputs.dist }} - ${{ inputs.platform }}
sudo -E bash -x buildone "${{ inputs.dist }}" "${{ inputs.platform }}"
if ${{ inputs.build_snapshot }} ; then
sudo -E bash -x buildone_snapshot "${{ inputs.dist }}" "${{ steps.snapshot-id.outputs.snapshot-id }}" "${{ inputs.platform }}"
fi
if ${{ inputs.is_latest }} ; then
BASENAME=${BASENAME:?Undefined or empty BASENAME}
echo "Tagging latest"
Expand Down
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

version: 2
# Check for updates to GitHub Actions every week
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
118 changes: 118 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: CD

# Controls when the action will run.
on:
# Triggers the workflow on push on the master branch
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
# Remove all permissions by default
permissions: {}
env:
BASENAME: bitnami/minideb
LATEST: bookworm
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
shellcheck:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
if: github.event_name != 'schedule' || github.repository == 'bitnami/minideb'
name: Shellcheck
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y shellcheck
- name: Verify scripts with shellcheck
run: |
bash shellcheck
build_multiarch:
runs-on: ubuntu-22.04
needs: [ shellcheck ]
strategy:
matrix:
dist: [bullseye, bookworm]
arch: [amd64, arm64]
name: Build ${{ matrix.dist }} on ${{ matrix.arch }}
steps:
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Use local build action
id: build
uses: ./.github/actions/build
with:
dist: "${{ matrix.dist }}"
platform: "${{ matrix.arch }}"
is_latest: ${{ matrix.dist == env.LATEST }}
- name: Push to DockerHUB
if: github.repository == 'bitnami/minideb' && github.ref == 'refs/heads/master'
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY: docker.io
DOCKER_CONTENT_TRUST_REPOSITORY_KEY: ${{ secrets.DOCKER_CONTENT_TRUST_REPOSITORY_KEY }}
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ secrets.DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE }}
run: |
bash pushone "${{ matrix.dist }}" "${{ matrix.arch }}"
if ${{ matrix.dist == env.LATEST }} ; then
bash pushone "latest" "${{ matrix.arch }}"
fi
- name: Push to AWS
if: github.repository == 'bitnami/minideb' && github.ref == 'refs/heads/master'
env:
DOCKER_USERNAME: AWS
DOCKER_REGISTRY: public.ecr.aws
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PUBLIC_GALLERY_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PUBLIC_GALLERY_SECRET_KEY }}
run: |
# AWS login
export DOCKER_PASSWORD="$(aws ecr-public get-login-password --region us-east-1)"
bash pushone "${{ matrix.dist }}" "${{ matrix.arch }}"
if ${{ matrix.dist == env.LATEST }} ; then
bash pushone "latest" "${{ matrix.arch }}"
fi
deploy_manifests:
runs-on: ubuntu-22.04
needs: [ build_multiarch ]
if: github.repository == 'bitnami/minideb' && github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Push Manifests to DockerHUB
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY: docker.io
run: |
DISTS="bullseye bookworm latest" bash pushmanifest
- name: Push Manifests to AWS
env:
DOCKER_USERNAME: AWS
DOCKER_REGISTRY: public.ecr.aws
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PUBLIC_GALLERY_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PUBLIC_GALLERY_SECRET_KEY }}
run: |
# AWS login
export DOCKER_PASSWORD="$(aws ecr-public get-login-password --region us-east-1)"
DISTS="bullseye bookworm latest" bash pushmanifest
# If the CI Pipeline does not succeed we should notify the interested agents
notify:
name: Send notification
needs:
- build_multiarch
- deploy_manifests
if: ${{ always() && github.repository == 'bitnami/minideb' && (needs.build_multiarch.result == 'failure' || needs.deploy_manifests.result == 'failure') }}
uses: bitnami/support/.github/workflows/gchat-notification.yml@main
with:
workflow: ${{ github.workflow }}
job-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
secrets:
webhook-url: ${{ secrets.GCHAT_CONTENT_ALERTS_WEBHOOK_URL }}
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on pull request events
pull_request:
# Remove all permissions by default
permissions: {}
env:
BASENAME: bitnami/minideb
LATEST: bookworm
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
shellcheck:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
name: Shellcheck
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y shellcheck
- name: Verify scripts with shellcheck
run: |
bash shellcheck
build_multiarch:
runs-on: ubuntu-22.04
needs: [ shellcheck ]
strategy:
matrix:
dist: [bullseye, bookworm]
arch: [amd64, arm64]
name: Build ${{ matrix.dist }} on ${{ matrix.arch }}
steps:
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Use local build action
id: build
uses: ./.github/actions/build
with:
dist: "${{ matrix.dist }}"
platform: "${{ matrix.arch }}"
is_latest: ${{ matrix.dist == env.LATEST }}
23 changes: 23 additions & 0 deletions .github/workflows/clossing-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository
name: '[Support] Close Solved issues'
on:
schedule:
# Hourly
- cron: '0 * * * *'
# Remove all permissions by default. Actions are performed by Bitnami Bot
permissions: {}
jobs:
stale:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'bitnami' }}
steps:
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
with:
any-of-labels: 'solved'
stale-issue-label: 'solved'
days-before-stale: 0
days-before-close: 0
repo-token: ${{ secrets.BITNAMI_SUPPORT_BOARD_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/comments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository
name: '[Support] Comments based card movements'
on:
issue_comment:
types:
- created
permissions:
contents: read
pull-requests: write
issues: write
# Avoid concurrency over the same issue
concurrency:
group: card-movement-${{ github.event.issue.number }}
jobs:
call-comments-workflow:
if: ${{ github.repository_owner == 'bitnami' }}
uses: bitnami/support/.github/workflows/comment-created.yml@main
secrets: inherit
Loading