mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
Remove cd workflow
This commit is contained in:
parent
707eae68c1
commit
9098bba37c
1 changed files with 0 additions and 41 deletions
41
.github/workflows/cd.yml
vendored
41
.github/workflows/cd.yml
vendored
|
@ -1,41 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
debug_enabled:
|
||||
description: 'Run the build with tmate debugging enabled'
|
||||
required: false
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build, push, and deploy
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
#if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set version from tag
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup tmate debug session
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
|
||||
|
||||
- name: Build container image
|
||||
run: |
|
||||
docker build \
|
||||
--tag ghcr.io/lukevella/rallly:${{ env.RELEASE_VERSION }} \
|
||||
--tag ghcr.io/lukevella/rallly:latest \
|
||||
.
|
||||
- name: Container registry login
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
|
||||
|
||||
- name: Push image to GitHub
|
||||
run: |
|
||||
docker push ghcr.io/lukevella/rallly:${{ env.RELEASE_VERSION }}
|
||||
docker push ghcr.io/lukevella/rallly:latest
|
Loading…
Add table
Reference in a new issue