Trying new build strategy
This commit is contained in:
parent
6ee81814dd
commit
a4770dc12a
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@ -10,11 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker
|
container: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- run: |
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Build Docker Container
|
|
||||||
run: |
|
|
||||||
clone -b "${{github.ref_name}}" "URL=$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
|
||||||
docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION .
|
docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION .
|
||||||
@ -32,11 +28,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node
|
container: node
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Repository
|
- run: |
|
||||||
uses: ztimson/actions/clone@develop
|
|
||||||
|
|
||||||
- name: Tag Version
|
|
||||||
run: |
|
|
||||||
clone -b "${{github.ref_name}}" "URL=$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
|
||||||
tag -f $VERSION ${{github.sha}}
|
tag -f $VERSION ${{github.sha}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user