Skip to content

Commit

Permalink
change version of zos to date
Browse files Browse the repository at this point in the history
this so we still can be backward compatible with older update
mechanism to make it easier for running nodes to switch to new
style
  • Loading branch information
muhamadazmy committed Oct 17, 2023
1 parent 627b7ee commit d9ff623
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
push:
branches:
- "*"
tags-ignore:
- v*

jobs:
build:
name: Build and upload
Expand Down Expand Up @@ -38,6 +35,11 @@ jobs:
echo "reference=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
- name: Set version of build
id: version
run: |
echo "version=v$(date +%y%m%d.%-H%M%S.0)" >> $GITHUB_OUTPUT
- name: Collecting files
run: |
scripts/collect.sh ${{ github.workspace }}/archive
Expand All @@ -50,7 +52,7 @@ jobs:
action: publish
user: tf-autobuilder
root: archive
name: zos-${{ github.sha }}.flist
name: zos:${{ steps.version.outputs.version }}.flist

- name: Tagging
uses: threefoldtech/publish-flist@master
Expand All @@ -59,7 +61,7 @@ jobs:
action: tag
user: tf-autobuilder
name: ${{ steps.tag.outputs.reference }}/zos.flist
target: tf-autobuilder/zos-${{ github.sha }}.flist
target: tf-autobuilder/zos:${{ steps.version.outputs.version }}.flist

- name: Cross tagging (development)
if: success() && github.ref == 'refs/heads/main'
Expand All @@ -70,3 +72,15 @@ jobs:
user: tf-zos
name: development
target: tf-autobuilder/${{ github.sha }}
# compatibility with old release
# this is needed so old machines that is already running on devnet
# gets the new code to be able to use the new release tag
- name: Crosslink flist (development)
if: success() && github.ref == 'refs/heads/main'
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos
name: zos:development-3:latest.flist
target: tf-autobuilder/zos:${{ steps.version.outputs.version }}.flist

0 comments on commit d9ff623

Please sign in to comment.