Skip to content

Commit

Permalink
altering all output (#44)
Browse files Browse the repository at this point in the history
* altering all output

* update all docker actions version

* another action update

* Update main-without-image.yaml
  • Loading branch information
guy-frontegg authored Sep 30, 2024
1 parent fa73f36 commit b5b45b5
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 38 deletions.
10 changes: 5 additions & 5 deletions .github/shared-actions/build-and-publish-docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ runs:
run: |
if [ -z "${{ inputs.tag_name }}" ]
then
echo "::set-output name=tag_name::${{ github.ref_name }}"
echo "tag_name=${{ github.ref_name }}" >> $GITHUB_OUTPUT
else
echo "::set-output name=tag_name::${{ inputs.tag_name }}"
echo "tag_name=${{ inputs.tag_name }}" >> $GITHUB_OUTPUT
fi
shell: bash
- name: Display Current variables
Expand All @@ -43,11 +43,11 @@ runs:
echo Commit Tag: ${{ inputs.tag }}
shell: bash
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ inputs.docker_hub_user }}
password: ${{ inputs.docker_hub_password }}
Expand Down
4 changes: 2 additions & 2 deletions .github/shared-actions/build-publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ runs:
return result;
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ inputs.docker_hub_user }}
password: ${{ inputs.docker_hub_password }}
Expand Down
6 changes: 3 additions & 3 deletions .github/shared-actions/build-publish-image/old.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ runs:
return result;
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ inputs.docker_hub_user }}
password: ${{ inputs.docker_hub_password }}
Expand Down
2 changes: 1 addition & 1 deletion .github/shared-actions/git-tag-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
- name: Set variables
id: variables
run: |
echo ::set-output name=env-name::"${{ inputs.environment }}"
echo "env-name=${{ inputs.environment }}" >> $GITHUB_OUTPUT
shell: bash
- name: Git Tag
id: git-tag-step
Expand Down
8 changes: 4 additions & 4 deletions .github/shared-actions/tag-versions/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ runs:
- name: Set variables
id: variables
run: |
echo ::set-output name=new-tag::"${{ inputs.environment }}-$(date +'%Y%m%d.%H%M%S')-${{ inputs.current_tag }}"
echo ::set-output name=registry::"${{ inputs.organization }}/${{ inputs.repository_name }}"
echo "new-tag=${{ inputs.environment }}-$(date +'%Y%m%d.%H%M%S')-${{ inputs.current_tag }}" >> $GITHUB_OUTPUT
echo "registry=${{ inputs.organization }}/${{ inputs.repository_name }}" >> $GITHUB_OUTPUT
shell: bash

- name: Display variables
Expand All @@ -60,7 +60,7 @@ runs:
token: ${{ inputs.github_token }}

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
if: ${{ inputs.should_tag_image }}
with:
username: ${{ inputs.docker_hub_user }}
Expand All @@ -74,7 +74,7 @@ runs:
${{ steps.variables.outputs.registry }}:${{ inputs.current_tag }}
docker manifest push ${{ steps.variables.outputs.registry }}:${{ steps.variables.outputs.new-tag }}
- uses: oleksiyrudenko/gha-git-credentials@v2.1.1
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
global: true
token: ${{ inputs.github_token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-docker-start-venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ jobs:
ref: ${{ fromJSON(steps.params.outputs.result).hash }}
token: ${{ secrets.GH_REPOSITORY_ADMIN_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_ACTION_USER }}
password: ${{ secrets.DOCKER_HUB_ACTION_PASSWORD }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main-with-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
id: variables
run: |
HYBRID_VERSION=$(date +%Y.%-m.%-d%H%M%S)
echo ::set-output name=version::"${HYBRID_VERSION}"
echo "version=${HYBRID_VERSION}" >> $GITHUB_OUTPUT
shell: bash
- name: Build and push docker image with tag ${{ needs.params.outputs.short_sha }}
run: |
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
repository: frontegg/workflows
path: workflows
ref: ${{ inputs.workflows_version }}
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
id: filter
with:
working-directory: code
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
should_tag_repository: ${{ inputs.chart_changed }}
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
should_tag_repository: ${{ inputs.chart_changed }}
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
should_tag_repository: ${{ inputs.chart_changed }}
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main-without-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
should_tag_repository: true
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
should_tag_repository: true
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
should_tag_repository: true
- name: Assign variable
id: secret
run: echo '::set-output name=secret::${{ secrets.slack_production_webhook }}'
run: echo "secret=${{ secrets.slack_production_webhook }}" >> $GITHUB_OUTPUT
- name: Notify Slack on deployment
if: steps.secret.outputs.secret
uses: rtCamp/action-slack-notify@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-api-tests-no-venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
- name: prepare output params
id: variables
run: |
echo "::set-output name=environmentId::${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}"
echo "::set-output name=apiUrl::${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}"
echo "::set-output name=portalUrl::${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}"
echo "environmentId=${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}" >> $GITHUB_OUTPUT
echo "apiUrl=${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}" >> $GITHUB_OUTPUT
echo "portalUrl=${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}" >> $GITHUB_OUTPUT
run-api-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-api-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
- name: prepare output params
id: variables
run: |
echo "::set-output name=environmentId::${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}"
echo "::set-output name=apiUrl::${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}"
echo "::set-output name=portalUrl::${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}"
echo "environmentId=${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}" >> $GITHUB_OUTPUT
echo "apiUrl=${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}" >> $GITHUB_OUTPUT
echo "portalUrl=${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}" >> $GITHUB_OUTPUT
run-api-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-e2e-tests-no-venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
- name: prepare output params
id: variables
run: |
echo "::set-output name=environmentId::${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}"
echo "::set-output name=apiUrl::${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}"
echo "::set-output name=portalUrl::${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}"
echo "environmentId=${{ needs.start-venv-with-image.outputs.environmentId || needs.start-venv.outputs.environmentId }}" >> $GITHUB_OUTPUT
echo "apiUrl=${{ needs.start-venv-with-image.outputs.apiUrl || needs.start-venv.outputs.apiUrl }}" >> $GITHUB_OUTPUT
echo "portalUrl=${{ needs.start-venv-with-image.outputs.portalUrl || needs.start-venv.outputs.portalUrl }}" >> $GITHUB_OUTPUT
run-e2e-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/start-venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ jobs:
ref: ${{ fromJSON(steps.params.outputs.result).hash }}
token: ${{ secrets.GH_REPOSITORY_ADMIN_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_ACTION_USER }}
password: ${{ secrets.DOCKER_HUB_ACTION_PASSWORD }}
Expand Down

0 comments on commit b5b45b5

Please sign in to comment.