Skip to content

Commit

Permalink
Changed user to repository_owner
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Apr 3, 2024
1 parent 1818767 commit a67e01e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_upload_on_push_to_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
branches:
- dev
- release
- devops/FAIRSPC-23_deployment

jobs:
# A job to generate one shared unique version tag per build cycle for all built artifacts
Expand Down Expand Up @@ -194,7 +195,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy_helm_chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy Helm Chart to FNS GKE

on:
push:
branches:
- devops/FAIRSPC-23_deployment
workflow_dispatch:
inputs:
name:
Expand Down Expand Up @@ -47,9 +50,6 @@ jobs:
- name: Define Helm Chart version (taken from input or latest snapshot)
run: |
VERSION=$(cat ./VERSION)-SNAPSHOT
if [ -n "${{ github.event.inputs.version }}" ]; then
VERSION=${{ github.event.inputs.version }}
fi
echo "Helm charts version to be deployed: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/package_and_push_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- dev
- release
- devops/FAIRSPC-23_deployment
workflow_dispatch:
inputs:
name:
Expand Down Expand Up @@ -32,14 +33,11 @@ jobs:

- name: Login with Helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ vars.HELM_REGISTRY }} --username ${{ github.repository_owner }} --password-stdin
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ vars.HELM_REGISTRY }} --username ${{ github.actor }} --password-stdin
- name: Prepare version
run: |
VERSION=$(cat ./VERSION)
if [[ ${{ github.event.inputs.release_type }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then
VERSION=$VERSION-SNAPSHOT
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Push Helm chart to repository
Expand All @@ -48,7 +46,3 @@ jobs:
helm package "charts/fairspace" --version ${{ env.VERSION }}
helm push "fairspace-${{ env.VERSION }}.tgz" "oci://${{ vars.HELM_REGISTRY }}"
echo "Pushed package to repository"
- name: Clean up
run: |
rm -rf "fairspace*.tgz"

0 comments on commit a67e01e

Please sign in to comment.