Skip to content

Commit

Permalink
build: remove release on tag push (#3273)
Browse files Browse the repository at this point in the history
Starting the version 0.16.0 we will branch out from the main 1
week before the release date, and then run the release workflow
manually
  • Loading branch information
josedonizetti committed Jun 26, 2023
1 parent 533fd90 commit 50da616
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
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})

0 comments on commit 50da616

Please sign in to comment.