You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2023/07/05 15:28:49 UTC
[beam] branch master updated: fix repo and add paths to push trigger (#27357)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 3457434de74 fix repo and add paths to push trigger (#27357)
3457434de74 is described below
commit 3457434de74704f0721fbbb201c1830d2c5d545d
Author: Vlado Djerek <20...@users.noreply.github.com>
AuthorDate: Wed Jul 5 17:28:41 2023 +0200
fix repo and add paths to push trigger (#27357)
* fix repo and add paths to push trigger
* added workflow as path for push
---
.github/workflows/build_runner_image.yml | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/build_runner_image.yml b/.github/workflows/build_runner_image.yml
index cc5d6e3b1c7..6ede36e706b 100644
--- a/.github/workflows/build_runner_image.yml
+++ b/.github/workflows/build_runner_image.yml
@@ -21,12 +21,13 @@ name: Build and Version Runner Docker Image
on:
push:
branches: ['master']
+ paths: ['.github/gh-actions-self-hosted-runners/arc/images/**','.github/workflows/arc-runner-docker-image.yml']
pull_request_target:
branches: ['master']
paths: ['.github/gh-actions-self-hosted-runners/arc/images/**']
env:
- docker_image: us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner
-
+ docker_registry: us-central1-docker.pkg.dev
+ docker_repo: apache-beam-testing/beam-github-actions/beam-arc-runner
jobs:
build-and-version-runner:
env:
@@ -47,7 +48,7 @@ jobs:
export_default_credentials: true
- name: GCloud Docker credential helper
run: |
- gcloud auth configure-docker europe-west3-docker.pkg.dev
+ gcloud auth configure-docker ${{env.docker_registry}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and Load to docker
@@ -56,7 +57,7 @@ jobs:
context: ${{ env.working-directory }}
load: true
tags: |
- ${{env.docker_image}}:latest
+ ${{env.docker_registry}}/${{env.docker_repo}}:latest
${{env.docker_image}}:${{ github.sha }}
- name: Push Docker image
if: github.event_name == 'push'
@@ -66,5 +67,5 @@ jobs:
context: ${{ env.working-directory }}
push: true
tags: |
- ${{env.docker_image}}:latest
+ ${{env.docker_registry}}/${{env.docker_repo}}:latest
${{env.docker_image}}:${{ github.sha }}