From 006c60b210df7a550e16fd1c3f0e78b0fd887681 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Wed, 18 Oct 2023 23:10:26 -0400 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98efaf9c42d..89d25ffc8ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,12 @@ jobs: - ci:check - ci:test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 - run: deno task btr ${{ matrix.task }} # GitHub CodeQL analysis analyze: - name: runs-on: ubuntu-latest needs: - testing @@ -38,7 +37,7 @@ jobs: language: - typescript steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} @@ -48,3 +47,22 @@ jobs: paths-ignore: - source/run/server/imports.ts - uses: github/codeql-action/analyze@v2 + + # Build and push Docker image + docker: + if: github.event_name == 'push' && github.ref == 'refs/heads/v4-dev' + runs-on: ubuntu-latest + needs: + - analyze + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + - uses: docker/build-push-action@v5 + with: + tags: v4 + file: ./Dockerfile + push: true \ No newline at end of file