Merge pull request #233 from wy-lucky/feat/not-collect-vnode-resource #65
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
name: Build docker image | |
on: | |
push: | |
tags: "*" | |
branches: ["main", "ci-test"] | |
permissions: | |
packages: write | |
jobs: | |
image: | |
name: Build docker image | |
runs-on: [ubuntu-20.04] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login for ghcr | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{github.token}} | |
- name: Set image tag for release | |
id: tag | |
run: | | |
if [[ ${{github.ref_type}} == tag ]]; then | |
echo "tag=${{github.ref_name}}" | |
else | |
echo "tag=dev" | |
fi >>$GITHUB_OUTPUT | |
- name: Build docker image | |
env: | |
REGISTRY: ghcr.io/kubewharf | |
TAG: ${{ steps.tag.outputs.tag }} | |
ARCHS: amd64 | |
OUTPUT_TYPE: registry | |
run: bash hack/make-rules/build-images.sh |