blob: abdc25f2ca407e561aae3ae120d02ce7498b85eb [file] [log] [blame]
#
# 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-BuilderImage-Push-Docker
on:
push:
tags:
- 'builder-*'
jobs:
build-lake:
name: Build lake-builder image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build lake image
run: |
cd devops/docker/lake-builder/
export IMAGE_LAKE=mericodev/lake-builder
export IMAGE_VER=${GITHUB_REF:18}
docker build -t $IMAGE_LAKE:latest --file ./Dockerfile .
docker tag $IMAGE_LAKE:latest $IMAGE_LAKE:$IMAGE_VER
docker push $IMAGE_LAKE:$IMAGE_VER
docker push $IMAGE_LAKE:latest