Update ci.yml
This commit is contained in:
parent
0679af508b
commit
ff2ce8c261
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user