Rework push [release]
This commit is contained in:
22
.github/workflows/docker-push.yml
vendored
22
.github/workflows/docker-push.yml
vendored
@@ -10,7 +10,17 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
config:
|
||||||
|
- main:
|
||||||
|
- repo: xpipe-io/xpipe
|
||||||
|
- tag: main
|
||||||
|
- ptb:
|
||||||
|
- repo: xpipe-io/xpipe-ptb
|
||||||
|
- tag: ptb
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: contains(github.event.head_commit.message, '[release]') || contains(github.event.head_commit.message, '[stage]')
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -19,6 +29,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set variables
|
||||||
|
run: |
|
||||||
|
XPIPE_VERSION=$(cat "${{ github.workspace }}/xpipe-webtop/${{ contains(github.event.head_commit.message, '[release]') == true && 'version-main' || 'version-ptb' }}")
|
||||||
|
echo "XPIPE_VERSION=$XPIPE_VERSION" >> $GITHUB_ENV
|
||||||
|
XPIPE_REPOSITORY=${{ contains(github.event.head_commit.message, '[release]') == true && 'xpipe-io/xpipe' || 'xpipe-io/xpipe-ptb' }}
|
||||||
|
echo "XPIPE_REPOSITORY=$XPIPE_REPOSITORY" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
@@ -31,7 +49,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.description=XPipe webtop container
|
|
||||||
org.opencontainers.image.vendor=xpipe.io
|
org.opencontainers.image.vendor=xpipe.io
|
||||||
org.opencontainers.image.authors=xpipe.io
|
org.opencontainers.image.authors=xpipe.io
|
||||||
org.opencontainers.image.documentation=https://github.com/xpipe-io/xpipe-webtop
|
org.opencontainers.image.documentation=https://github.com/xpipe-io/xpipe-webtop
|
||||||
@@ -45,6 +62,9 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
"XPIPE_VERSION=${{ env.XPIPE_VERSION }}"
|
||||||
|
"XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}"
|
||||||
- name: Generate artifact attestation
|
- name: Generate artifact attestation
|
||||||
uses: actions/attest-build-provenance@v1
|
uses: actions/attest-build-provenance@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
|
|||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
ENV TITLE="XPipe Webtop"
|
ENV TITLE="XPipe Webtop"
|
||||||
ARG XPIPE_VERSION="11.3"
|
ARG XPIPE_VERSION
|
||||||
ARG XPIPE_REPOSITORY="xpipe-io/xpipe"
|
ARG XPIPE_REPOSITORY
|
||||||
|
|
||||||
# prevent Ubuntu's firefox stub from being installed
|
# prevent Ubuntu's firefox stub from being installed
|
||||||
COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
|
COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
|
||||||
|
|||||||
1
version-main
Normal file
1
version-main
Normal file
@@ -0,0 +1 @@
|
|||||||
|
11.3
|
||||||
1
version-ptb
Normal file
1
version-ptb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
11.4-2
|
||||||
Reference in New Issue
Block a user