Skip to content

Commit

Permalink
revert changes in the test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chizkiyahu committed Oct 31, 2023
1 parent 6463e0c commit 8cb0757
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
workflow_dispatch:

concurrency: testing
permissions:
contents: read
# Maxiumum permissions for pull requests from public forked repositories is "read":
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
packages: read
jobs:
add_temp_pkgs1:
name: Add temporary packages for testing
Expand All @@ -29,17 +24,17 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: lower case repository_owner
id: lower_case_repository_owner
uses: ASzc/change-string-case-action@v2
password: ${{ secrets.GITHUB_TOKEN }}
- name: lower case repository
id: lower_case_repository
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository_owner }}
string: ${{ github.repository }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./CICD/Dockerfile_temp
tags: ghcr.io/${{ steps.lower_case_repository_owner.outputs.lowercase }}/${{ matrix.type }}:${{ matrix.i }}
tags: ghcr.io/${{ steps.lower_case_repository.outputs.lowercase }}/${{ matrix.type }}:${{ matrix.i }}
build-args: |
I=${{ matrix.i }}
push: true
Expand All @@ -62,17 +57,17 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: lower case repository_owner
id: lower_case_repository_owner
uses: ASzc/change-string-case-action@v2
password: ${{ secrets.GITHUB_TOKEN }}
- name: lower case repository
id: lower_case_repository
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository_owner }}
string: ${{ github.repository }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./CICD/Dockerfile_temp
tags: ghcr.io/${{ steps.lower_case_repository_owner.outputs.lowercase }}/${{ matrix.type }}:${{ matrix.i }}
tags: ghcr.io/${{ steps.lower_case_repository.outputs.lowercase }}/${{ matrix.type }}:${{ matrix.i }}
build-args: |
I=${{ matrix.i }}
push: true
Expand All @@ -91,8 +86,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- uses: ./
with:
token: ${{ secrets.PAT_TOKEN }}
Expand Down Expand Up @@ -128,7 +123,7 @@ jobs:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: p1
package_name: ${{ github.repository }}/p1
untagged_only: false
owner_type: user

Expand Down

0 comments on commit 8cb0757

Please sign in to comment.