Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Add Docker publishing workflow (#130)
Manu00b931921a3e
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlnew file mode 100644index 000000000..ba5addfea--- /dev/null+++ b/.github/workflows/cd.yml@@ -0,0 +1,41 @@+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