mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-25 22:27:20 +10:00
network-host
This commit is contained in:
parent
fd18ec89a2
commit
12300e7283
2 changed files with 17 additions and 16 deletions
32
.github/workflows/build-and-publish.yml
vendored
32
.github/workflows/build-and-publish.yml
vendored
|
|
@ -23,23 +23,23 @@ jobs:
|
|||
username: ${{ env.REPOSITORY_OWNER }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# - name: Build and Push to GitHub Container Registry
|
||||
# uses: docker/build-push-action@v4
|
||||
# with:
|
||||
# build-args: |
|
||||
# DESKTOP_ENVIRONMENT_USER=${{ env.REPOSITORY_OWNER }}
|
||||
# DESKTOP_ENVIRONMENT_GITHUB_USER=${{ env.REPOSITORY_OWNER }}
|
||||
# cache-from: type=gha
|
||||
# cache-to: type=gha,mode=max
|
||||
# file: docker/Dockerfile
|
||||
# push: true
|
||||
# tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/desktop-environment:latest
|
||||
- name: Build and Push to GitHub Container Registry
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
build-args: |
|
||||
DESKTOP_ENVIRONMENT_USER=${{ env.REPOSITORY_OWNER }}
|
||||
DESKTOP_ENVIRONMENT_GITHUB_USER=${{ env.REPOSITORY_OWNER }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
file: docker/Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/desktop-environment:latest
|
||||
|
||||
# - name: Run desktop environment tests
|
||||
# run: ./docker/scripts/test-start.sh
|
||||
# env:
|
||||
# DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }}
|
||||
# continue-on-error: true
|
||||
- name: Run desktop environment tests
|
||||
run: ./docker/scripts/test-start.sh
|
||||
env:
|
||||
DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Setup tmate session
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ docker network create $DESKTOP_ENVIRONMENT_DOCKER_NETWORK
|
|||
docker run \
|
||||
--detach \
|
||||
--name $DESKTOP_ENVIRONMENT_CONTAINER_IMAGE \
|
||||
--network host \
|
||||
--publish 8080 \
|
||||
--rm \
|
||||
$DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue