Misc bugs and release preparation for 3.3.9 (#2291) #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Tag | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Build Containers | |
if: github.repository == 'xibosignage/xibo-cms' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Build Image | |
run: | | |
docker build . -t ghcr.io/xibosignage/xibo-cms:release-${GITHUB_REF##*/} --build-arg GIT_COMMIT=${GITHUB_SHA} | |
- name: Push Image | |
run: | | |
docker login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} | |
docker push ghcr.io/xibosignage/xibo-cms:release-${GITHUB_REF##*/} | |
- name: Build archive | |
run: | | |
CONTAINER=$(docker create ghcr.io/xibosignage/xibo-cms:release-${GITHUB_REF##*/}) | |
echo 'Copying from container.' | |
docker cp "$CONTAINER":/var/www/cms/ xibo-cms-${GITHUB_REF##*/} | |
tar -czf xibo-cms-${GITHUB_REF##*/}.tar.gz xibo-cms-${GITHUB_REF##*/} | |
zip -rq xibo-cms-${GITHUB_REF##*/}.zip xibo-cms-${GITHUB_REF##*/} | |
echo 'Added to archives.' | |
docker rm "$CONTAINER" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
fail_on_unmatched_files: true | |
files: | | |
**.tar.gz | |
**.zip |