kyuubi/.github/workflows/docker-image.yml
Yikf 2b86d6dde0 [KYUUBI #3692] [INFRA] [FOLLOWUP] Upgrade Github actions version
### _Why are the changes needed?_

This pr aims to upgrade github actions version, They all include actions/core upgrades(Cleanup set-output warning), as follow:
1) Upgrade actions/checkout from v2 to v3, https://github.com/actions/checkout/releases/tag/v3.1.0
2) Upgrade docker/login-action from v1 to v2, https://github.com/docker/login-action/releases/tag/v2.1.0
3) Upgrade actions/upload-artifact from v2 to v3, https://github.com/actions/upload-artifact/releases/tag/v3.1.1
4) Upgrade actions/stale from v5 to v6, https://github.com/actions/stale/releases/tag/v6.0.1

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3700 from Yikf/upgrade-ga.

Closes #3692

68289e9e [Yikf] Upgrade GA

Authored-by: Yikf <yikaifei1@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-10-29 10:43:37 +00:00

48 lines
1.6 KiB
YAML

#
# 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
if: ${{ startsWith(github.repository, 'apache/') }}
runs-on: ubuntu-22.04
concurrency:
# this group should be global unique
group: push-docker-image
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Kyuubi Docker Image
run: docker build --tag apache/kyuubi:master-snapshot --file build/Dockerfile .
- name: Docker image
run: docker images
- name: Push Docker image
run: docker push apache/kyuubi:master-snapshot