Skip to content

Commit

Permalink
CLDR-14145 JSP: automatically push to gcr.io on tag (#17)
Browse files Browse the repository at this point in the history
* CLDR-14145 push to us.gcr.io on tag
- also, bump JDK to 16
  • Loading branch information
srl295 authored Sep 7, 2020
1 parent 5d838ac commit a10ba47
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/push-jsp-on-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Push to GCR Github Action
on:
push:
tags:
- '*'
jobs:
build-and-push-to-gcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_tag_name
run: echo ::set-output name=GIT_TAG_NAME::${GITHUB_REF/refs\/tags\//}
- uses: RafikFarhad/push-to-gcr-github-action@v3
with:
gcloud_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }}
registry: us.gcr.io
project_id: dev-infra-273822
image_name: unicode-jsps
image_tag: ${{ steps.get_tag_name.outputs.GIT_TAG_NAME}}
dockerfile: ./UnicodeJsps/Dockerfile
context: ./UnicodeJsps/
2 changes: 1 addition & 1 deletion UnicodeJsps/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2020 and later Unicode, Inc. and others. All Rights Reserved.
# Use -eJDKVERSION=13 -eTOMCATVERSION=8 for example to change these
ARG JDKVERSION=14
ARG JDKVERSION=16
FROM openjdk:${JDKVERSION}-alpine AS build
# Need ant, add it. Yes, this pulls in JDK8, but it's an easier
# way to manage this.
Expand Down

0 comments on commit a10ba47

Please sign in to comment.