mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-08 16:22:46 +01:00
Add release workflow
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -2,6 +2,7 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push: { branches: [ main ] }
|
push: { branches: [ main ] }
|
||||||
pull_request:
|
pull_request:
|
||||||
|
release: { types: [ published ] }
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
@@ -63,8 +64,8 @@ jobs:
|
|||||||
- name: Version
|
- name: Version
|
||||||
if: ${{ github.ref != '' }}
|
if: ${{ github.ref != '' }}
|
||||||
run: |
|
run: |
|
||||||
echo ${{ github.ref }}
|
echo ${{ github.ref_name }}
|
||||||
echo ${{ github.ref }} > VERSION
|
echo ${{ github.ref_name }} > VERSION
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v3
|
||||||
@@ -76,18 +77,3 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
# deploy:
|
|
||||||
# name: Deploy
|
|
||||||
# runs-on: self-hosted
|
|
||||||
# needs: [ build ]
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: docker/login-action@v1
|
|
||||||
# with:
|
|
||||||
# registry: ${{ env.REGISTRY }}
|
|
||||||
# username: ${{ github.actor }}
|
|
||||||
# password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# - run: docker-compose -f docker-compose.yml -f docker-compose.demo.yml pull
|
|
||||||
# - run: docker-compose -f docker-compose.yml -f docker-compose.demo.yml up -d --remove-orphans --force-recreate
|
|
||||||
# - run: docker-compose -f docker-compose.yml -f docker-compose.demo.yml restart
|
|
||||||
|
|||||||
Reference in New Issue
Block a user