From 9098bba37cd7739ea59ae51d17f52e95ca25d5cd Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Tue, 28 Jun 2022 18:39:51 +0100 Subject: [PATCH] Remove cd workflow --- .github/workflows/cd.yml | 41 ---------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index ba5addfea43..00000000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -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