GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docker-java-base/.github/workflows/update-docker-args.yml at main · hypertrace/docker-java-base

Expand file tree

/

update-docker-args.yml

Copy path
View runs
More file actions
More file actions

Latest commit

 

History

History
History
58 lines (54 loc) · 2.11 KB
/

update-docker-args.yml

Copy path

File metadata and controls

58 lines (54 loc) · 2.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Update Docker Args
on:
schedule:
- cron: 0 1 * * 1
workflow_dispatch:
jobs:
update-docker-args:
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Docker Args
shell: bash
id: args
run: |
BASE_IMAGE="gcr.io/distroless/cc-debian13"
BASE_IMAGE_TAG="debug"
BASE_IMAGE_DIGEST=$(gcloud container images list-tags $BASE_IMAGE --format json | jq --arg tag "$BASE_IMAGE_TAG" -r '.[] | {digest: .digest, tag: .tags[]} | select(.tag == $tag) | .digest')
if [ -n "$BASE_IMAGE_DIGEST" ]; then
echo -n "${BASE_IMAGE}:${BASE_IMAGE_TAG}@${BASE_IMAGE_DIGEST}" > java-11/base.image
echo -n "${BASE_IMAGE}:${BASE_IMAGE_TAG}@${BASE_IMAGE_DIGEST}" > java-21/base.image
echo "digest=${BASE_IMAGE_DIGEST}" >> $GITHUB_OUTPUT
else
echo "digest=null" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
if: steps.args.outputs.digest != 'null'
uses: peter-evans/create-pull-request@v6
id: create-pull-request
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Update docker args (Automated)
body: |
# Autogenerated docker args update:
digest: ${{ steps.args.outputs.digest }}
commit-message: Update docker args
delete-branch: true
branch-suffix: timestamp
- name: Enable Pull Request Automerge
if: steps.args.outputs.digest != 'null'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}
merge-method: squash
# - name: Approve Pull Request
# if: steps.args.outputs.digest != 'null'
# uses: juliangruber/approve-pull-request-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ steps.create-pull-request.outputs.pull-request-number }}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.