From 01841a7031e71b060fbbd861f159bf117df39b15 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:16:29 +0200 Subject: [PATCH] feat: Azdo-launch-pipeline (#66) * updated snapshot action * force * typo fix * force * try * force * force * force * force * force * force * 1force * 1force * 1force * 2force * enabled push docker for snapshot * 3force * 3force --- .github/workflows/snapshot-docker.yml | 38 ++++++++++++++++++++++++--- force-release | 2 +- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.github/workflows/snapshot-docker.yml b/.github/workflows/snapshot-docker.yml index 3496adf..5b1d796 100644 --- a/.github/workflows/snapshot-docker.yml +++ b/.github/workflows/snapshot-docker.yml @@ -14,10 +14,40 @@ jobs: release: name: Snapshot Docker runs-on: ubuntu-22.04 + environment: dev steps: - - name: 📦 Docker build and push - id: release - uses: pagopa/eng-github-actions-iac-template/global/docker-build-push@main # + - name: Checkout code + uses: actions/checkout@v3 + + - name: Log in to the Github Container registry + id: docker_login + uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 #v3.2.0 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image with release version + id: docker_build_push + uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c #v6.3.0 + with: + context: . + push: true + tags: "ghcr.io/${{ github.repository }}:snapshot,ghcr.io/${{ github.repository }}:snapshot-${{ github.ref_name }}" + labels: | + maintainer=https://pagopa.it + org.opencontainers.image.source=https://github.com/${{ github.repository }} + + - name: Trigger Azure DevOps pipeline + uses: jacopocarlini/azure-pipelines@v1.3 + with: + azure-devops-project-url: 'https://dev.azure.com/pagopaspa/devopslab-projects' + azure-pipeline-name: 'devopslab-diego-deploy.deploy' + azure-devops-token: ${{ secrets.AZUREDEVOPS_PAT }} + azure-template-parameters: | + { + "APPS_ARGOCD": "one-color", + "APPS": "[one-color]" + } + azure-pipeline-variables: '{"system.debug": "true"}' diff --git a/force-release b/force-release index b2dffb7..47702a2 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -1652 +1545