Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Docker CI - Security added & Tagging updates - 2 (#1327)
## Overview ℹ️ Same content as: [1320](#1320), I had an issue and the PR was closed... Hello team, Hope you’re doing well The following PR contains some changes in the Docker CI, build & publish. I’ve added some features: - File renamed: `amd64-docker-build.yml` -> `docker-build-publish.yml` *We will be able to use a matrix for building the container in different architectures.* - This CI is triggered when - When push to any branch - When creating `PRs` - When there's a new hotfix (when push to main branch) - When push tags `(v0.0.0/v0.0.0-alpha/v0.0.0-beta/v0.0.0-rcX)` - Only push new Docker images when they are in `main` or `v*` (blocking forks for security) - Security: [Trivy](https://www.aquasec.com/products/trivy/) added to the CI, this is the first step during the build, it scans the image and provide us a table summary in case we have any CVE, if everything goes well, it continues with the next step. *It’s not going to block the CI in case of bugs, though I think it will be good for us, stop it and fix them.* - Docker tagging: - Git short SHA => for example: `a594b69` - Tag ID => for example: `0.0.1` - Provided some additional metadata to the images: - Maintainer => "maintainer": "CelestiaOrg" - Description => "CelestiaOrg repository celestiaorg/celestia-app" - URL to the specific commit => "commit_url": "a594b69" - Docker pull command => "docker_pull_command": "docker pull ghcr.io/celestiaorg/celestia-app:a594b691" --- ## Checklist - [x] Required CI checks are passing - [x] Linked issues closed with keywords --- ## Blockers Hello team! I'll need to add some permissions to allow the CI to have the access to the packages. This is an error that I'm having: [link](https://github.com/celestiaorg/celestia-app/actions/runs/4058197292/jobs/6984898432) ``` ERROR: failed to solve: failed to push ghcr.io/celestiaorg/celestia-app:pr-1320: unexpected status: 403 Forbidden Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/celestiaorg/celestia-app:pr-1320: unexpected status: 403 Forbidden ``` Thanks in advance! cc: @evan-forbes @rootulp @Bidon15 @sysrex Please, ping me when you'll going to merge it, just to check that everything goes fine 😊 Thank you team! --- Closes Issue: [37](celestiaorg/devops#37)
- Loading branch information