Trying new build strategy
This commit is contained in:
parent
0543a0e68b
commit
2fdac10aa7
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
container: docker
|
||||
steps:
|
||||
- run: |
|
||||
git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
|
||||
docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION .
|
||||
docker push ${{ github.server_url }}/${{ github.repository }}:$VERSION
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
container: node
|
||||
steps:
|
||||
- run: |
|
||||
git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
|
||||
tag -f $VERSION ${{github.sha}}
|
||||
git push -f origin $VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user