fix: Move version page creation to build step
All checks were successful
Build Docker / Build Docker (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-12-16 11:45:45 +11:00
parent e2fc022abf
commit b5e2cd2f84
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -9,9 +9,6 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Add version page
run: |
echo "version: ${{ GITHUB_RUN_NUMBER }}" > content/version.txt
- name: Install Docker - name: Install Docker
run : | run : |
echo "Updating apt sources" echo "Updating apt sources"
@ -33,7 +30,8 @@ jobs:
tag_num="${tag}-${tag_num}" tag_num="${tag}-${tag_num}"
fi fi
echo "version: ${{ GITHUB_RUN_NUMBER }}" > content/version.txt
ls -l content
docker build -t hns_doh:$tag_num . docker build -t hns_doh:$tag_num .
docker tag hns_doh:$tag_num git.woodburn.au/nathanwoodburn/hns_doh:$tag_num docker tag hns_doh:$tag_num git.woodburn.au/nathanwoodburn/hns_doh:$tag_num
docker push git.woodburn.au/nathanwoodburn/hns_doh:$tag_num docker push git.woodburn.au/nathanwoodburn/hns_doh:$tag_num