Update ci.yml

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-08-07 21:01:59 +03:00 committed by GitHub
parent 0679af508b
commit ff2ce8c261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,13 +7,13 @@ env:
IMAGE_NAME: pika-base-debian-container IMAGE_NAME: pika-base-debian-container
jobs: jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push: push:
runs-on: ubuntu-latest runs-on: self-hosted
permissions: container:
packages: write image: ubuntu-latest
contents: read volumes:
- /proc:/proc
options: --privileged -it --cap-add=sys_admin --cap-add mknod --device=/dev/fuse --security-opt seccomp=unconfined --security-opt label=disable
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -36,7 +36,7 @@ jobs:
# Strip "v" prefix from tag name # Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention # Use Docker `latest` tag convention
[ "$VERSION" == "main" ] && VERSION=latest VERSION="v3lto"
echo IMAGE_ID=$IMAGE_ID echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION docker tag $IMAGE_NAME $IMAGE_ID:$VERSION