|
|
@ -12,12 +12,6 @@ jobs:
|
|
|
|
- name: Check out repository code
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
|
|
- name: Write release version
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
KARTSROLLER_VERSION=${GITHUB_REF_NAME#v}
|
|
|
|
|
|
|
|
echo Version: $KARTSROLLER_VERSION
|
|
|
|
|
|
|
|
echo "KARTSROLLER_VERSION=$KARTSROLLER_VERSION" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build site
|
|
|
|
- name: Build site
|
|
|
|
run: npm install && npm run build
|
|
|
|
run: npm install && npm run build
|
|
|
|
|
|
|
|
|
|
|
@ -34,12 +28,17 @@ jobs:
|
|
|
|
username: henine
|
|
|
|
username: henine
|
|
|
|
password: "${{ secrets.PACKAGE_UPLOAD_TOKEN }}"
|
|
|
|
password: "${{ secrets.PACKAGE_UPLOAD_TOKEN }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Docker meta
|
|
|
|
|
|
|
|
uses: https://github.com/docker/metadata-action@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
images: git.raptorpond.com/${{ github.repository }}
|
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
- name: Build and push
|
|
|
|
uses: https://github.com/docker/build-push-action@v2
|
|
|
|
uses: https://github.com/docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
git.raptorpond.com/${{ github.repository }}:latest
|
|
|
|
|
|
|
|
git.raptorpond.com/${{ github.repository }}:${{ env.KARTSROLLER_VERSION }}
|
|
|
|
|
|
|
|