-
Notifications
You must be signed in to change notification settings - Fork 21
Last fixes to GitHub actions CI #1037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ permissions: | |
| packages: write | ||
|
|
||
| jobs: | ||
| cleanup-packages: | ||
| packages: | ||
| name: Packages | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
@@ -22,9 +22,9 @@ jobs: | |
| - name: Cleanup GHCR Packages | ||
| uses: dataaxiom/ghcr-cleanup-action@v1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| token: ${{ github.token }} | ||
| owner: ${{ github.repository_owner }} | ||
| packages: ^villas/node(/.*)?$ | ||
| packages: ^villasframework/node(/.*)?$ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without the |
||
| expand-packages: true | ||
| use-regex: true | ||
| exclude-tags: ^(latest|master.*|v.*)$ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,6 @@ name: Deploy (Nix) | |
| on: | ||
| workflow_call: | ||
| inputs: | ||
| docker_image: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| required: true | ||
| type: string | ||
| ref_name: | ||
| required: true | ||
| type: string | ||
|
|
@@ -18,16 +15,15 @@ on: | |
| default: false | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
| DOCKER_IMAGE: ${{ inputs.docker_image }} | ||
| CONTAINER_IMAGE: ghcr.io/villasframework/node | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
additionally, now there are two patterns, because others drop and use directly |
||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| deploy-docker-nix: | ||
| name: Nix-based Docker Images | ||
| container-nix: | ||
| name: Nix-based Container Images | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Build Image | ||
|
|
@@ -36,9 +32,9 @@ jobs: | |
| - name: Login to Registry | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| password: ${{ github.token }} | ||
|
|
||
| - name: Compute safe ref Tag | ||
| id: ref | ||
|
|
@@ -49,14 +45,14 @@ jobs: | |
| - name: Create and Push Multi-arch Nix Manifest | ||
| run: | | ||
| docker buildx imagetools create \ | ||
| -t "${{ env.DOCKER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix" \ | ||
| "${{ env.DOCKER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix-x86_64-linux" \ | ||
| "${{ env.DOCKER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix-aarch64-linux" | ||
| -t "${{ env.CONTAINER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix" \ | ||
| "${{ env.CONTAINER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix-x86_64-linux" \ | ||
| "${{ env.CONTAINER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix-aarch64-linux" | ||
|
|
||
| latest-docker-nix: | ||
| name: Tag Nix-based Docker Images as latest-nix | ||
| latest-container-nix: | ||
| name: Tag Nix-based Container Images as latest-nix | ||
| if: ${{ inputs.is_version_tag }} | ||
| needs: [deploy-docker-nix] | ||
| needs: [container-nix] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Build Image | ||
|
|
@@ -65,9 +61,9 @@ jobs: | |
| - name: Login to Registry | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ${{ env.REGISTRY }} | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| password: ${{ github.token }} | ||
|
|
||
| - name: Compute safe ref Tag | ||
| id: ref | ||
|
|
@@ -78,8 +74,8 @@ jobs: | |
| - name: Tag Nix Manifest as latest-nix | ||
| run: | | ||
| docker buildx imagetools create \ | ||
| -t "${{ env.DOCKER_IMAGE }}:latest-nix" \ | ||
| "${{ env.DOCKER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix" | ||
| -t "${{ env.CONTAINER_IMAGE }}:latest-nix" \ | ||
| "${{ env.CONTAINER_IMAGE }}:${{ steps.ref.outputs.tag }}-nix" | ||
|
|
||
| release-nix: | ||
| name: Release Nix | ||
|
|
@@ -98,7 +94,7 @@ jobs: | |
|
|
||
| - name: Publish ARX and RPM Bundles to the Release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh release create "${GITHUB_REF_NAME}" dist/* \ | ||
| --repo "${GITHUB_REPOSITORY}" \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image: ${{ inputs.container_image }}**/**dev-${{ matrix.image_name }}:${{ inputs.ref }}? prepare creates it with/not-so the image will not be found