mirror of
https://github.com/bitnami/containers.git
synced 2026-02-12 15:17:15 +08:00
[bitnami/*] Workflow review (#1146)
* Workflow review Signed-off-by: Fran Mulero <fmulero@vmware.com> * Check all worflow names Signed-off-by: Fran Mulero <fmulero@vmware.com> * Fix wrong name Signed-off-by: Fran Mulero <fmulero@vmware.com> * Ammend comment Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
27
.github/workflows/cd-pipeline.yaml
vendored
27
.github/workflows/cd-pipeline.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: CD Pipeline
|
||||
name: '[CI/CD] CD Pipeline'
|
||||
on: # rebuild any PRs and main branch changes
|
||||
push:
|
||||
branches:
|
||||
@@ -83,18 +83,25 @@ jobs:
|
||||
- id: get-container-metadata
|
||||
name: Get image tag and container name
|
||||
run: |
|
||||
# Now EAM commits has the following format "[bitnami/<container>] Release <tag>"
|
||||
tag="$(git log --pretty=tformat:"%s" -n 1 --grep="[R|r]elease" --author bitnami-bot@vmware.com --author containers@bitnami.com --author containers-bot@bitnami.com -- ${{ matrix.container }} | sed "s|\[.*\]||" | sed "s|[R|r]elease||" | awk '{print $1}')"
|
||||
if [[ -z "${tag}" ]]; then
|
||||
echo "No tag found for: ${{ matrix.container }}"
|
||||
exit 1
|
||||
if [[ -d "${{ matrix.container }}" ]]; then
|
||||
# Now EAM commits has the following format "[bitnami/<container>] Release <tag>"
|
||||
tag="$(git log --pretty=tformat:"%s" -n 1 --grep="[R|r]elease" --author bitnami-bot@vmware.com --author containers@bitnami.com --author containers-bot@bitnami.com -- ${{ matrix.container }} | sed "s|\[.*\]||" | sed "s|[R|r]elease||" | awk '{print $1}')"
|
||||
if [[ -z "${tag}" ]]; then
|
||||
echo "No tag found for: ${{ matrix.container }}"
|
||||
exit 1
|
||||
else
|
||||
name="$(echo "${{ matrix.container }}" | awk -F '/' '{print $2}')"
|
||||
echo "::set-output name=tag::${tag}"
|
||||
echo "::set-output name=name::${name}"
|
||||
echo "::set-output name=result::ok"
|
||||
fi
|
||||
else
|
||||
name="$(echo "${{ matrix.container }}" | awk -F '/' '{print $2}')"
|
||||
echo "::set-output name=tag::${tag}"
|
||||
echo "::set-output name=name::${name}"
|
||||
# Container folder doesn't exists we are assuming a deprecation
|
||||
echo "::set-output name=result::skip"
|
||||
fi
|
||||
- uses: vmware-labs/vmware-image-builder-action@main
|
||||
name: "Publish ${{ steps.get-container-metadata.outputs.name }}: ${{ steps.get-container-metadata.outputs.tag }}"
|
||||
name: 'Publish ${{ steps.get-container-metadata.outputs.name }}: ${{ steps.get-container-metadata.outputs.tag }}'
|
||||
if: ${{ steps.get-container-metadata.outputs.result == 'ok' }}
|
||||
with:
|
||||
pipeline: vib-publish.json
|
||||
env:
|
||||
|
||||
2
.github/workflows/ci-pipeline.yaml
vendored
2
.github/workflows/ci-pipeline.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: CI Pipeline
|
||||
name: '[CI/CD] CI Pipeline'
|
||||
on: # rebuild any PRs and main branch changes
|
||||
pull_request_target:
|
||||
types:
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: 'Close stale issues and PRs'
|
||||
name: '[Support] Close stale issues and PRs'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
|
||||
19
.github/workflows/sync-deprecations.yaml
vendored
19
.github/workflows/sync-deprecations.yaml
vendored
@@ -1,19 +0,0 @@
|
||||
name: Sync containers repositories
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Every day at 1 AM
|
||||
- cron: '0 1 * * *'
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
name: Sync deprecations
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout bitnami/containers
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.BITNAMI_BOT_SECRET }}
|
||||
fetch-depth: 0
|
||||
- name: Sync Containers
|
||||
run: ./scripts/sync-deprecations.sh
|
||||
2
.github/workflows/sync-labels.yml
vendored
2
.github/workflows/sync-labels.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: 'Synchronize labels from the vms repository'
|
||||
name: '[Support] Synchronize labels from the vms repository'
|
||||
on:
|
||||
schedule:
|
||||
# Daily
|
||||
|
||||
Reference in New Issue
Block a user