CI: build container when the version is a clean git tag 8
Some checks failed
/ build (push) Failing after 21s
Some checks failed
/ build (push) Failing after 21s
This commit is contained in:
parent
3fc7a60bc5
commit
eecb3b98c4
1 changed files with 7 additions and 7 deletions
|
@ -22,14 +22,14 @@ jobs:
|
|||
|
||||
- name: Check if the container should be built
|
||||
id: builder
|
||||
run: echo "run=toJSON(${{ inputs.build || !contains(steps.version.output.version, '-')) }}" >> $GITHUB_OUTPUT
|
||||
run: echo "run=toJSON(${{ inputs.build || !contains(steps.version.outputs.version, '-')) }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check
|
||||
run: |
|
||||
echo version
|
||||
echo '${{ steps.version.output.version }}'
|
||||
echo '${{ steps.version.outputs.version }}'
|
||||
echo Build
|
||||
echo '${{ fromJSON(steps.builder.output.run)}}'
|
||||
echo '${{ fromJSON(steps.builder.outputs.run)}}'
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
# run: git pull --unshallow
|
||||
|
||||
- name: Build container
|
||||
if: fromJSON(steps.builder.output.run)
|
||||
if: fromJSON(steps.builder.outputs.run)
|
||||
uses: actions/buildah-build@v1
|
||||
with:
|
||||
image: treetrail-frontend
|
||||
|
@ -64,13 +64,13 @@ jobs:
|
|||
./Containerfile
|
||||
|
||||
- name: Workaround for bug of podman-login
|
||||
if: fromJSON(steps.builder.output.run)
|
||||
if: fromJSON(steps.builder.outputs.run)
|
||||
run: |
|
||||
mkdir -p $HOME/.docker
|
||||
echo "{ \"auths\": {} }" > $HOME/.docker/config.json
|
||||
|
||||
- name: Log in to container registry (with another workaround)
|
||||
if: fromJSON(steps.builder.output.run)
|
||||
if: fromJSON(steps.builder.outputs.run)
|
||||
uses: actions/podman-login@v1
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
|
@ -79,7 +79,7 @@ jobs:
|
|||
auth_file_path: /tmp/auth.json
|
||||
|
||||
- uses: actions/push-to-registry@v2
|
||||
if: fromJSON(steps.builder.output.run)
|
||||
if: fromJSON(steps.builder.outputs.run)
|
||||
with:
|
||||
registry: "docker://${{ vars.REGISTRY }}"
|
||||
image: treetrail-frontend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue