Skip to content

Commit

Permalink
feat: now use payments actions for snapshot docker (#70)
Browse files Browse the repository at this point in the history
* try

* updated action

* force

* typo fix

* updated template

* fix azure devops pat

* upgrated checkout

* force

* try empty

* fix pipeline

* removed actions no more needed

* added fix version of workflow

* fix action template name

* changed name for snapshot docker action
  • Loading branch information
diegolagospagopa authored Oct 17, 2024
1 parent 7a4f505 commit 4c72958
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 179 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/payments-flow-docker-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: SPAC Snapshot docker build and push

on:
push:
branches-ignore:
- 'main'
paths-ignore:
- 'CODEOWNERS'
- '**.md'
- '.**'
workflow_dispatch:

env:
CURRENT_BRANCH: ${{ github.event.inputs.branch || github.ref_name }}

jobs:
spac-flow-docker-snapshot:
runs-on: ubuntu-22.04
environment: dev
steps:
- name: 🔖 Checkout code
# https://github.com/actions/checkout/releases/tag/v4.2.1
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
ref: ${{ env.CURRENT_BRANCH }}

- name: 📦 Run Snapshot Docker Build/Push & Trigger
# https://github.com/pagopa/github-actions-template/releases/tag/v1.16.0
uses: pagopa/github-actions-template/spac-flow-docker-snapshot@2f5eb6b40e97186d217f7441dbe83ac611a63636
with:
current_branch: ${{ github.ref_name }}
enable_azure_devops_step: 'true'
azure_devops_apps: "[one-color]"
azure_devops_project_url: 'https://dev.azure.com/pagopaspa/devopslab-projects'
azure_devops_pipeline_name: 'devopslab-diego-deploy.deploy'
azure_devops_pat: ${{ secrets.AZUREDEVOPS_PAT }}
68 changes: 0 additions & 68 deletions .github/workflows/snapshot-docker.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/snapshot-template.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/spac-flow-docker-snapshot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1545
1604

0 comments on commit 4c72958

Please sign in to comment.