From d9161373ddbfa9b1cc0fb638e247f8ff9aa10e83 Mon Sep 17 00:00:00 2001 From: denis-tingaikin Date: Mon, 20 Nov 2023 15:58:09 +0300 Subject: [PATCH] fix ci yaml Signed-off-by: denis-tingaikin --- .github/workflows/ci.yaml | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fb87d166..fc742bc5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,10 +7,10 @@ on: - 'release/**' pull_request: jobs: - yamllint: - uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main - with: - config_file: "./.yamllint.yml" + # yamllint: + # uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main + # with: + # config_file: "./.yamllint.yml" shellcheck: uses: networkservicemesh/.github/.github/workflows/shellcheck.yaml@main @@ -26,8 +26,8 @@ jobs: with: allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp, govpp, vpphelper" - checkgomod: - uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main + # checkgomod: + # uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main gogenerate: uses: networkservicemesh/.github/.github/workflows/cmd-gogenerate.yaml@main @@ -40,3 +40,30 @@ jobs: uses: networkservicemesh/.github/.github/workflows/docker-build-and-test.yaml@main secrets: token: ${{ secrets.GITHUB_TOKEN }} + + docker: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v4 + with: + ref: refs/heads/release/v1.11.1 + + - name: "Set up Docker Buildx" + uses: docker/setup-buildx-action@v1 + + - name: "Login to GitHub Container Registry" + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.token }} + + - name: "Build and push" + uses: docker/build-push-action@v2 + with: + file: Dockerfile + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ inputs.tag }}"