Skip to content

Commit ee6ee60

Browse files
authored
Merge pull request #8108 from NlightNFotis/undo_release_process_changes
[CI] Bring back core release processes
2 parents 8182793 + 905b1e8 commit ee6ee60

File tree

3 files changed

+65
-83
lines changed

3 files changed

+65
-83
lines changed

.github/workflows/regular-release.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
with:
3838
tag_name: cbmc-${{ env.CBMC_VERSION }}
3939
release_name: cbmc-${{ env.CBMC_VERSION }}
40-
prerelease: true
40+
draft: false
41+
prerelease: false
4142
body: |
4243
This is CBMC version ${{ env.CBMC_VERSION }}.
4344
@@ -95,8 +96,6 @@ jobs:
9596
That will initialise an execution of the container based on the image pushed
9697
as part of this release. The CProver tools are present in the `$PATH` of the
9798
container.
98-
draft: false
99-
prerelease: false
10099
- name: Slack notification of successful release
101100
uses: rtCamp/action-slack-notify@v2
102101
env:

.github/workflows/release-packages.yaml

+63-63
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
uses: rtCamp/action-slack-notify@v2
7171
if: success() || failure()
7272
env:
73-
SLACK_CHANNEL: team_open_source
73+
SLACK_CHANNEL: aws-cbmc
7474
SLACK_COLOR: ${{ job.status }}
7575
SLACK_USERNAME: Github Actions CI bot
7676
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
@@ -143,41 +143,41 @@ jobs:
143143
uses: rtCamp/action-slack-notify@v2
144144
if: success() || failure()
145145
env:
146-
SLACK_CHANNEL: team_open_source
146+
SLACK_CHANNEL: aws-cbmc
147147
SLACK_COLOR: ${{ job.status }}
148148
SLACK_USERNAME: Github Actions CI bot
149149
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
150150
SLACK_MESSAGE: "${{ job.status == 'success' && 'Ubuntu 20.04 package built and uploaded successfully' || 'Ubuntu 20.04 package build failed' }}"
151151

152-
# homebrew-pr:
153-
# runs-on: macos-11
154-
# steps:
155-
# - name: Get release tag name
156-
# # The GITHUB_REF we get has refs/tags/ in front of the tag name so we
157-
# # strip that here
158-
# run: echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
159-
# - name: Configure git user name and email
160-
# uses: Homebrew/actions/git-user-config@07da0794847043a11761f14c97cc682577c74d5d
161-
# with:
162-
# username: db-ci-cprover
163-
# - name: Create homebrew PR
164-
# run: |
165-
# brew update-reset
166-
# brew bump-formula-pr --tag "$RELEASE_TAG" --revision "$GITHUB_SHA" cbmc
167-
# env:
168-
# HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.DB_CI_CPROVER_ACCESS_TOKEN }}
169-
# - name: Checkout CBMC project source code to obtain access to scripts
170-
# if: always()
171-
# uses: actions/checkout@v4
172-
# - name: Slack notification of CI status
173-
# if: success() || failure()
174-
# env:
175-
# SLACK_CHANNEL: team_open_source
176-
# SLACK_COLOR: ${{ job.status }}
177-
# SLACK_USERNAME: Github Actions CI bot
178-
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
179-
# SLACK_MESSAGE: "${{ job.status == 'success' && 'Homebrew PR submitted successfully' || 'Homebrew PR failed' }}"
180-
# run: go run scripts/slack_notification_action.go
152+
homebrew-pr:
153+
runs-on: macos-11
154+
steps:
155+
- name: Get release tag name
156+
# The GITHUB_REF we get has refs/tags/ in front of the tag name so we
157+
# strip that here
158+
run: echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
159+
- name: Configure git user name and email
160+
uses: Homebrew/actions/git-user-config@07da0794847043a11761f14c97cc682577c74d5d
161+
with:
162+
username: db-ci-cprover
163+
- name: Create homebrew PR
164+
run: |
165+
brew update-reset
166+
brew bump-formula-pr --tag "$RELEASE_TAG" --revision "$GITHUB_SHA" cbmc
167+
env:
168+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.DB_CI_CPROVER_ACCESS_TOKEN }}
169+
- name: Checkout CBMC project source code to obtain access to scripts
170+
if: always()
171+
uses: actions/checkout@v4
172+
- name: Slack notification of CI status
173+
if: success() || failure()
174+
env:
175+
SLACK_CHANNEL: aws-cbmc
176+
SLACK_COLOR: ${{ job.status }}
177+
SLACK_USERNAME: Github Actions CI bot
178+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
179+
SLACK_MESSAGE: "${{ job.status == 'success' && 'Homebrew PR submitted successfully' || 'Homebrew PR failed' }}"
180+
run: go run scripts/slack_notification_action.go
181181

182182
windows-msi-package:
183183
runs-on: windows-2019
@@ -266,41 +266,41 @@ jobs:
266266
- name: Slack notification of CI status
267267
if: success() || failure()
268268
env:
269-
SLACK_CHANNEL: team_open_source
269+
SLACK_CHANNEL: aws-cbmc
270270
SLACK_COLOR: ${{ job.status }}
271271
SLACK_USERNAME: Github Actions CI bot
272272
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
273273
SLACK_MESSAGE: "${{ job.status == 'success' && 'Windows package built and uploaded successfully' || 'Windows package build failed' }}"
274274
run: go run scripts/slack_notification_action.go
275275

276-
# push-docker-image-dockerhub:
277-
# runs-on: ubuntu-20.04
278-
# steps:
279-
# - name: Checkout CBMC source
280-
# uses: actions/checkout@v4
281-
# with:
282-
# submodules: recursive
283-
# - name: Set Image Tag
284-
# run: |
285-
# # Isolate the version number from a reference to a tag, for example,
286-
# # '5.20.3' from a string like 'refs/tags/cbmc-5.20.3-exp'
287-
# VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)
288-
# echo "IMAGE_TAG=diffblue/cbmc:$VERSION" >> $GITHUB_ENV
289-
# - name: Build docker image
290-
# run: docker build -t "$IMAGE_TAG" .
291-
# - name: Push docker image to DockerHub
292-
# run: |
293-
# echo ${{ secrets.DOCKERHUB_ACCESS_DB_CI_CPROVER }} | docker login --username=dbcicprover --password-stdin
294-
# docker image push "$IMAGE_TAG"
295-
# # For security reasons remove stored login credentials from
296-
# # configuration file they are stored at by docker login.
297-
# docker logout
298-
# - name: Slack notification of CI status
299-
# uses: rtCamp/action-slack-notify@v2
300-
# if: success() || failure()
301-
# env:
302-
# SLACK_CHANNEL: team_open_source
303-
# SLACK_COLOR: ${{ job.status }}
304-
# SLACK_USERNAME: Github Actions CI bot
305-
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
306-
# SLACK_MESSAGE: "${{ job.status == 'success' && 'Docker Image built and submitted to DockerHub successfully' || 'Docker Image build failed' }}"
276+
push-docker-image-dockerhub:
277+
runs-on: ubuntu-20.04
278+
steps:
279+
- name: Checkout CBMC source
280+
uses: actions/checkout@v4
281+
with:
282+
submodules: recursive
283+
- name: Set Image Tag
284+
run: |
285+
# Isolate the version number from a reference to a tag, for example,
286+
# '5.20.3' from a string like 'refs/tags/cbmc-5.20.3-exp'
287+
VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)
288+
echo "IMAGE_TAG=diffblue/cbmc:$VERSION" >> $GITHUB_ENV
289+
- name: Build docker image
290+
run: docker build -t "$IMAGE_TAG" .
291+
- name: Push docker image to DockerHub
292+
run: |
293+
echo ${{ secrets.DOCKERHUB_ACCESS_DB_CI_CPROVER }} | docker login --username=dbcicprover --password-stdin
294+
docker image push "$IMAGE_TAG"
295+
# For security reasons remove stored login credentials from
296+
# configuration file they are stored at by docker login.
297+
docker logout
298+
- name: Slack notification of CI status
299+
uses: rtCamp/action-slack-notify@v2
300+
if: success() || failure()
301+
env:
302+
SLACK_CHANNEL: aws-cbmc
303+
SLACK_COLOR: ${{ job.status }}
304+
SLACK_USERNAME: Github Actions CI bot
305+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
306+
SLACK_MESSAGE: "${{ job.status == 'success' && 'Docker Image built and submitted to DockerHub successfully' || 'Docker Image build failed' }}"

v6_undo_stack.markdown

-17
This file was deleted.

0 commit comments

Comments
 (0)