🔨 fix: import consistent corev1 #55
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: CI Dev | |
on: | |
push | |
env: | |
VERSION: v0.2.0 | |
REPO: vcr.vngcloud.vn/60108-annd2-ingress | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Log in to the GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Log in to the vCR | |
uses: docker/login-action@v3 | |
with: | |
registry: vcr.vngcloud.vn | |
username: ${{ secrets.VCR_USER }} | |
password: ${{ secrets.VCR_PASSWORD }} | |
- name: Build and push Docker image | |
env: | |
TARGET: vngcloud-ingress-controller | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
build-args: | | |
VERSION=${{ env.VERSION }} | |
platforms: linux/amd64 | |
outputs: type=registry | |
tags: | | |
ghcr.io/vngcloud/vngcloud-ingress-controller:${{ github.sha }} | |
${{ env.REPO }}/vngcloud-ingress-controller:${{ github.sha }} | |
${{ env.REPO }}/vngcloud-ingress-controller:${{ env.VERSION }} | |
target: vngcloud-ingress-controller | |
- name: Build and push Docker image | |
env: | |
TARGET: vngcloud-controller-manager | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
build-args: | | |
VERSION=${{ env.VERSION }} | |
platforms: linux/amd64 | |
outputs: type=registry | |
tags: | | |
ghcr.io/vngcloud/vngcloud-controller-manager:${{ github.sha }} | |
${{ env.REPO }}/vngcloud-controller-manager:${{ github.sha }} | |
${{ env.REPO }}/vngcloud-controller-manager:${{ env.VERSION }} | |
target: vngcloud-controller-manager |