Skip to content

Commit

Permalink
ci: add new release workflows using GitHub Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
skhomuti authored and Amuhar committed Oct 20, 2023
1 parent f3dca75 commit 3a2c0b7
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 237 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/ci-prod.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: CI Build prod image

on:
workflow_call:
inputs:
tag:
description: "tag to deploy from"
default: ""
required: false
type: string
release:
types: [released]

permissions:
contents: read
permissions: {}

jobs:
# test:
Expand All @@ -21,27 +15,12 @@ jobs:
# needs: test
name: Build and deploy
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Tag name
id: tag_name
run: |
if [ '${{ inputs.tag }}' = '' ]; then
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "TAG=$TAG" >> $GITHUB_OUTPUT
fi
env:
TAG: ${{ inputs.tag }}

- name: Build prod image
uses: lidofinance/dispatch-workflow@v1
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TAG: "${{ steps.tag_name.outputs.TAG }}"
TAG: "${{ github.event.release.tag_name }}"
TARGET_WORKFLOW: "build_both_critical_and_mainnet_lido_keys_api.yaml"
46 changes: 0 additions & 46 deletions .github/workflows/create-tag-and-trigger-deploy.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/prepare-release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Prepare release draft
on:
push:
branches:
- main

permissions:
contents: write

jobs:
prepare-release-draft:
uses: lidofinance/actions/.github/workflows/prepare-release-draft.yml@main
with:
target: main
46 changes: 0 additions & 46 deletions .github/workflows/prepare-release.yml

This file was deleted.

Loading

0 comments on commit 3a2c0b7

Please sign in to comment.