Fixed syntax
This commit is contained in:
parent
2029688bf4
commit
3d0c5a190f
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
@ -2,7 +2,7 @@ name: Build Container
|
|||||||
run-name: Build Container
|
run-name: Build Container
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
container:
|
container:
|
||||||
@ -53,15 +53,15 @@ jobs:
|
|||||||
docker push $REGISTRY/${{github.repository}}:latest
|
docker push $REGISTRY/${{github.repository}}:latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
name: Git Tag
|
name: Git Tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine/git
|
container: alpine/git
|
||||||
steps:
|
steps:
|
||||||
- name: Git Tag
|
- name: Git Tag
|
||||||
run: |
|
run: |
|
||||||
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
VERSION="$(cat Dockerfile | grep "ARG CADDY_VERSION" | grep -Eo '=.+' | grep -Eo '[[:alnum:]\.\/\-]+')"
|
VERSION="$(cat Dockerfile | grep "ARG CADDY_VERSION" | grep -Eo '=.+' | grep -Eo '[[:alnum:]\.\/\-]+')"
|
||||||
|
|
||||||
git tag -f $VERSION ${{github.sha}}
|
git tag -f $VERSION ${{github.sha}}
|
||||||
git push -f origin $VERSION
|
git push -f origin $VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user