Skip to content

Commit

Permalink
feat: Azdo-launch-pipeline (#66)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
diegolagospagopa authored Oct 5, 2024
1 parent 471de78 commit 01841a7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/snapshot-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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"}'
2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1652
1545

0 comments on commit 01841a7

Please sign in to comment.