Implementing long username flag in HTTP connection. #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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: Publish Docker image | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-22.04 | |
permissions: | |
id-token: write | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
role: | |
- arn:aws:iam::490994600027:role/GitHubActions | |
- arn:aws:iam::168092343067:role/GitHubActions | |
- arn:aws:iam::231342060024:role/GitHubActions | |
spark-version: | |
- "3.2" | |
- "3.3" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ matrix.role }} | |
aws-region: us-east-2 | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v1 | |
- name: Build Kyuubi Docker Image | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
run: docker build --build-arg MVN_ARG="-Pspark-${{ matrix.spark-version }}" --tag $ECR_REGISTRY/ndap/kyuubi:1.7.0-spark${{ matrix.spark-version }} --file build/Dockerfile . | |
- name: Docker image | |
run: docker images | |
- name: Push Docker image | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPO_NAME: ndap/kyuubi | |
run: | | |
aws ecr describe-repositories --repository-names ${REPO_NAME} || aws ecr create-repository --repository-name ${REPO_NAME} | |
docker push $ECR_REGISTRY/$REPO_NAME:1.7.0-spark${{ matrix.spark-version }} |