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

build: remove release on tag push #3273

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/mkdocs-latest.yaml
Expand Up @@ -3,10 +3,11 @@
#
name: Deploy the latest documentation
on:
push:
tags:
- "v*"
workflow_dispatch: {}
workflow_dispatch:
inputs:
ref:
description: The tag to be released, e.g. v0.0.1
required: true
jobs:
deploy:
name: Deploy the latest documentation
Expand All @@ -15,6 +16,7 @@ jobs:
- name: Checkout main
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0
persist-credentials: true
- name: Login to docker.io registry
Expand All @@ -38,8 +40,5 @@ jobs:
git config user.email "github-actions@github.com"
- name: Deploy the latest documents
run: |
VERSION="${{ github.event.inputs.tag }}"
if [ -z $VERSION ]; then
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
fi
VERSION="${{ github.event.inputs.ref }}"
mike deploy --push --update-aliases ${VERSION%.*} latest
18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Expand Up @@ -3,9 +3,11 @@
#
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
ref:
description: The tag to be released, e.g. v0.0.1
required: true
jobs:
release:
name: Release X64 (Default)
Expand All @@ -23,6 +25,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
submodules: true
fetch-depth: 0
- name: Install Cosign
Expand All @@ -45,7 +48,7 @@ jobs:
# use :x86_64-v0.xx.0 for versioned image
- name: Publish to docker.io registry
run: |
TAG=$(git describe --tags --abbrev=0 | sed -e "s/v//gI")
TAG=$(echo ${{ github.event.inputs.ref }} | sed -e "s/v//gI")
ARCH=$(uname -m)
docker image tag tracee:latest aquasec/tracee:latest
docker image tag tracee:latest aquasec/tracee:${ARCH}
Expand All @@ -57,7 +60,7 @@ jobs:
docker image push aquasec/tracee:${ARCH}-${TAG}
- name: Sign Docker image
run: |
TAG=$(git describe --tags --abbrev=0 | sed -e "s/v//gI")
TAG=$(echo ${{ github.event.inputs.ref }} | sed -e "s/v//gI")
ARCH=$(uname -m)
cosign sign -y $(docker inspect --format='{{index .RepoDigests 0}}' aquasec/tracee:latest)
cosign sign -y $(docker inspect --format='{{index .RepoDigests 0}}' aquasec/tracee:${ARCH})
Expand All @@ -82,6 +85,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
submodules: true
fetch-depth: 0
- name: Install Cosign
Expand All @@ -104,15 +108,15 @@ jobs:
# use :aarch64-v0.xx.0 for versioned image
- name: Publish to docker.io registry
run: |
TAG=$(git describe --tags --abbrev=0 | sed -e "s/v//gI")
TAG=$(echo ${{ github.event.inputs.ref }} | sed -e "s/v//gI")
ARCH=$(uname -m)
docker image tag tracee:latest aquasec/tracee:${ARCH}
docker image tag tracee:latest aquasec/tracee:${ARCH}-${TAG}
docker image push aquasec/tracee:${ARCH}
docker image push aquasec/tracee:${ARCH}-${TAG}
- name: Sign Docker image
run: |
TAG=$(git describe --tags --abbrev=0 | sed -e "s/v//gI")
TAG=$(echo ${{ github.event.inputs.ref }} | sed -e "s/v//gI")
ARCH=$(uname -m)
cosign sign -y $(docker inspect --format='{{index .RepoDigests 0}}' aquasec/tracee:${ARCH})
cosign sign -y $(docker inspect --format='{{index .RepoDigests 0}}' aquasec/tracee:${ARCH}-${TAG})