Build .tar.gz file in docker container #8
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
on: | |
push: | |
branches: | |
- master | |
- deploy-strato | |
jobs: | |
build: | |
name: Build website zip | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./app | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v3 | |
- name: Build .tar.gz file | |
run: | | |
docker build --tag local-img/zipper --target zipper . | |
docker create --name zipper local-img/zipper | |
docker cp zipper:/build.tar.gz ./build.tar.gz | |
docker rm -f zipper | |
# TODO: remove debug | |
- name: Debug print all files | |
run: find ${GITHUB_WORKSPACE} | |
shell: bash | |
# TODO: upload to sftp |