Skip to content

Commit

Permalink
Build fix (#2)
Browse files Browse the repository at this point in the history
* Update clean.yaml

* Update build.yaml

* Update clean.yaml

* Update clean.yaml
  • Loading branch information
Tvion authored Feb 21, 2025
1 parent 2e47342 commit bd494ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:

env:
TAG_NAME: ${{ github.event.release.tag_name || github.ref }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
PUSH: ${{ (github.event_name != 'workflow_dispatch' || inputs.publish_docker) && github.actor != 'dependabot[bot]' }}

jobs:
Expand Down Expand Up @@ -55,7 +54,7 @@ jobs:
with:
component-name: ${{ matrix.component.name }}
component-tag: ${{ env.TAG_NAME }}
access-token: ${{ secrets.GH_ACCESS_TOKEN }}
access-token: ${{secrets.GITHUB_TOKEN}}
if: ${{ env.PUSH }}
- name: Build and push
uses: docker/build-push-action@v6
Expand All @@ -67,8 +66,6 @@ jobs:
push: ${{ env.PUSH }}
tags: ghcr.io/netcracker/${{ matrix.component.name }}:${{ env.TAG_NAME }}
provenance: false
secrets: |
GH_ACCESS_TOKEN=${{ secrets.GH_ACCESS_TOKEN }}
- uses: actions/delete-package-versions@v5
with:
package-name: ${{ matrix.component.name }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: delete
env:
COMPONENT_NAME: qubership-query-exporter
TAG_NAME: ${{ github.event.ref }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

jobs:
delete:
Expand All @@ -25,10 +24,10 @@ jobs:
with:
component-name: ${{ env.COMPONENT_NAME }}
component-tag: ${{ env.TAG_NAME }}
access-token: ${{ secrets.GH_ACCESS_TOKEN }}
access-token: ${{secrets.GITHUB_TOKEN}}
- uses: actions/delete-package-versions@v5
with:
package-name: ${{ env.COMPONENT_NAME }}
package-type: 'container'
package-version-ids: ${{ env.IDS_FOR_DELETE }}
if: ${{ env.IDS_FOR_DELETE != '' }}
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}

0 comments on commit bd494ce

Please sign in to comment.