Skip to content

Commit

Permalink
#7: Attempting to resolve git tag retrieving
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 15, 2020
1 parent 3a23e10 commit 6ad2679
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Parse version
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: "Login to quay"
uses: docker/login-action@v1
with:
Expand All @@ -48,10 +55,10 @@ jobs:
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt"

- name: Release to docker registry (x86)
run: "RKD_COMPAT_SUBPROCESS=true rkd :release:docker:x86 --git-tag=${GITHUB_REF##*/}"
run: "RKD_COMPAT_SUBPROCESS=true rkd :release:docker:x86 --git-tag=${{ steps.branch_name.outputs.SOURCE_TAG }}"

# - name: Release to docker registry (arm)
# run: "rkd :release:docker:x86 --git-tag=${GITHUB_REF##*/}"
# run: "rkd :release:docker:x86 --git-tag=${{ steps.branch_name.outputs.SOURCE_TAG }}"

- name: Release to PyPI
run: "rkd :release:pypi --token=${PYPI_TOKEN}"
run: "rkd :release:pypi --token=${{ secrets.PYPI_TOKEN }}"

0 comments on commit 6ad2679

Please sign in to comment.