This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRIF-48 implement development container
- Loading branch information
1 parent
8917632
commit 7295a8d
Showing
5 changed files
with
115 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build container | ||
|
||
env: | ||
REGISTRY_USER: ${{ github.actor }} | ||
REGISTRY_PASSWORD: ${{ github.token }} | ||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | ||
|
||
jobs: | ||
build_main: | ||
name: ${{ matrix.build.name }} | ||
runs-on: 'ubuntu-latest' | ||
permissions: | ||
contents: read | ||
packages: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
install_latest: [ true ] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "main" | ||
- name: set lower case owner name | ||
run: | | ||
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} | ||
env: | ||
OWNER: '${{ github.repository_owner }}' | ||
- name: Log in to ghcr.io | ||
uses: redhat-actions/podman-login@v1 | ||
with: | ||
username: ${{ env.REGISTRY_USER }} | ||
password: ${{ env.REGISTRY_PASSWORD }} | ||
registry: "ghcr.io/redhatproductsecurity" | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get -y install buildah | ||
name: 'install deps' | ||
- run: make build | ||
name: 'build main development image' | ||
- run: | | ||
buildah tag localhost/griffon:dev ghcr.io/redhatproductsecurity/griffon/griffon:dev | ||
buildah push ghcr.io/redhatproductsecurity/griffon/griffon:dev | ||
name: 'push images' | ||
- name: Install Cosign | ||
uses: sigstore/cosign-installer@main | ||
- name: Sign image with a key | ||
run: | | ||
cosign sign --key env://COSIGN_PRIVATE_KEY ghcr.io/redhatproductsecurity/griffon/griffon:dev | ||
env: | ||
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}} | ||
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}} | ||
- name: Verify image | ||
run: | | ||
cosign verify --key cosign.pub ghcr.io/redhatproductsecurity/griffon/griffon:dev | ||
env: | ||
COSIGN_PUBLIC_KEY: ${{secrets.COSIGN_PUBLIC_KEY}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
autoload -Uz compinit | ||
compinit | ||
eval "$(_GRIFFON_COMPLETE=zsh_source griffon)" |