Skip to content

Commit

Permalink
Fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakcht committed Jan 22, 2025
1 parent 28b4620 commit 3015cc5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Branch Deleted
on: delete

env:
TAG_NAME: ${{ github.event.ref }}

jobs:
delete:
strategy:
fail-fast: false
matrix:
component:
- name: qubership-hive-metastore-transfer
- name: qubership-hive-metastore
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${GITHUB_ACTOR}
password: ${{secrets.GITHUB_TOKEN}}
- name: Prepare Tag
run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV
- name: Get package IDs for delete
id: get-ids-for-delete
uses: Netcracker/get-package-ids@v0.0.1
with:
component-name: ${{ matrix.component.name }}
component-tag: ${{ env.TAG_NAME }}
access-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/delete-package-versions@v5
with:
package-name: ${{ matrix.component.name }}
package-type: 'container'
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build Artifacts
on:
release:
types: [created]
push:
branches:
- '**'
Expand Down

0 comments on commit 3015cc5

Please sign in to comment.