Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub
- uses: docker/build-push-action@v5 # Using v5 for latest features
with:
context: ./src/xcp_ng_dev/
file: ./src/xcp_ng_dev/files/Dockerfile-8.x
context: ./container
file: ./container/Dockerfile-8.x
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/${{ github.repository }}:8.2
cache-from: type=gha,scope=${{ github.ref_name }}-82 # Cache layers to speed up builds
Expand All @@ -48,8 +48,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub
- uses: docker/build-push-action@v5 # Using v5 for latest features
with:
context: ./src/xcp_ng_dev/
file: ./src/xcp_ng_dev/files/Dockerfile-8.x
context: ./container
file: ./container/Dockerfile-8.x
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/${{ github.repository }}:8.3
cache-from: type=gha,scope=${{ github.ref_name }}-83 # Cache layers to speed up builds
Expand All @@ -73,8 +73,8 @@ jobs:
# password: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub
# - uses: docker/build-push-action@v5 # Using v5 for latest features
# with:
# context: ./src/xcp_ng_dev/
# file: ./src/xcp_ng_dev/files/Dockerfile-9.x
# context: ./container
# file: ./container/Dockerfile-9.x
# platforms: |
# linux/amd64/v2
# push: ${{ github.ref == 'refs/heads/master' }}
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/xcp_ng_dev/build.sh → container/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ ALMA_VERSION=
CENTOS_VERSION=
case "$1" in
9.*)
DOCKERFILE=files/Dockerfile-9.x
DOCKERFILE=Dockerfile-9.x
ALMA_VERSION=10.0
: ${PLATFORM:=linux/amd64/v2}
;;
8.*)
DOCKERFILE=files/Dockerfile-8.x
DOCKERFILE=Dockerfile-8.x
: ${PLATFORM:=linux/amd64}
;;
*)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies = [

[project.scripts]
xcp-ng-dev = "xcp_ng_dev.cli:main"
xcp-ng-dev-env-create = "xcp_ng_dev.cli:build"

[project.urls]
Homepage = "https://github.com/xcp-ng/xcp-ng-build-env/"
Expand Down
5 changes: 0 additions & 5 deletions src/xcp_ng_dev/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,5 @@ def main():

sys.exit(return_code)

def build():
bargs = [os.path.join(os.path.dirname(__file__), 'build.sh')] + sys.argv[1:]
return_code = subprocess.call(bargs)
sys.exit(return_code)

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux

TARGET_XCP_NG_VERSION="8.2"

xcp-ng-dev-env-create "$TARGET_XCP_NG_VERSION"
./container/build.sh "$TARGET_XCP_NG_VERSION"

REPOS=xcp-emu-manager

Expand Down