You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/11/03 19:36:00 UTC

[jira] [Work logged] (BEAM-13172) [Playground] Backend Application CI/CD Scripts

     [ https://issues.apache.org/jira/browse/BEAM-13172?focusedWorklogId=674891&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-674891 ]

ASF GitHub Bot logged work on BEAM-13172:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Nov/21 19:35
            Start Date: 03/Nov/21 19:35
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on a change in pull request #15870:
URL: https://github.com/apache/beam/pull/15870#discussion_r742270384



##########
File path: .github/workflows/build_playground_backend.yml
##########
@@ -0,0 +1,73 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Build And Deploy Playground Backend Application
+
+on:
+  push:
+    branches: ['master', 'release-*']
+    tags: 'v*'
+  pull_request:
+    branches: ['master', 'release-*']
+    tags: 'v*'
+    paths: ['playground/backend/**']
+  workflow_dispatch:
+
+jobs:
+  build_playground_backend_docker_image:
+    name: Build Playground Backend App
+    runs-on: ubuntu-latest
+    env:
+      GO_VERSION: 1.17.0
+      BEAM_VERSION: 2.33.0
+    steps:
+      - name: Check out the repo
+        uses: actions/checkout@v2
+      - name: Set up JDK 1.8
+        uses: joschi/setup-jdk@v2
+        with:
+            java-version: '8'
+      - uses: actions/setup-go@v2
+        with:
+            go-version: '${{ env.GO_VERSION }}'
+      - name: Prepare Go lint env
+        run: "sudo ./playground/backend/env_setup.sh"
+      - name: Run Lint
+        run: "golangci-lint run internal/..."
+        working-directory: playground/backend/
+        continue-on-error: true
+      - name: Run Tests
+        run: ./gradlew playground:backend:test
+        continue-on-error: true
+      - name: install npm
+        uses: actions/setup-node@v2
+        with:
+            node-version: '14'
+      - name: install docker linter
+        run: npm install  -g dockerlint
+      - name: lint dockerfile
+        run: dockerlint Dockerfile
+        working-directory: playground/backend/containers/java
+      - name: Setup GCP account
+        run: echo ${{ secrets.GCP_ACCESS_KEY }} | base64 -d > /tmp/gcp_access.json

Review comment:
       Are the secrets/passwords going to be visible in the logs?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 674891)
    Remaining Estimate: 0h
            Time Spent: 10m

> [Playground] Backend Application CI/CD Scripts
> ----------------------------------------------
>
>                 Key: BEAM-13172
>                 URL: https://issues.apache.org/jira/browse/BEAM-13172
>             Project: Beam
>          Issue Type: Sub-task
>          Components: beam-playground
>            Reporter: Sergey Kalinin
>            Assignee: Sergey Kalinin
>            Priority: P2
>              Labels: beam-playground-backend, beam-playground-devops
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As a Playground maintainer, I want to have CI/CD pipelines in Apache Beam GitHub to automatically run tests in the Beam Playground project and deploy Beam Playground Backend components to GCP infrastructure.
> Acceptance criteria: 
>  # CI/CD pipelines have been implemented using GitHub Actions
>  # CI pipelines check style using linter for backend
>  # CI pipelines run tests for the Beam Playground Backend Application
>  # CI/CD pipelines built artifacts and docker images
>  # CD pipelines deployed Beam Playground components to GCP
>  # CI/CD pipelines integrated with Apache Beam CI/CD
>  # Draft Deployment instruction/FAQ



--
This message was sent by Atlassian Jira
(v8.3.4#803005)