Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkateshRavula authored Mar 10, 2021
1 parent f264993 commit 289b9e6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ jobs:
- name: Setup environment for collection publish
run: |
echo "GITHUB_REF=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: Build and publish
run: |
ansible-galaxy collection build .
ansible-galaxy collection publish hpe-oneview-${{ env.GITHUB_REF }}.tar.gz --api-key="${{ secrets.GALAXY_API_TOKEN }}"
version=$(echo ${GITHUB_REF:10} | cut -c 2-)
echo "GITHUB_VERSION=${version}" >> $GITHUB_ENV
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
Expand All @@ -38,3 +35,8 @@ jobs:

- name: Push the tagged Docker image
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-ansible-collection:${{ env.GITHUB_REF }}-OV6.0

- name: Build and publish
run: |
ansible-galaxy collection build .
ansible-galaxy collection publish hpe-oneview-${{ env.GITHUB_VERSION }}.tar.gz --api-key="${{ secrets.GALAXY_API_TOKEN }}"

0 comments on commit 289b9e6

Please sign in to comment.