diff options
| author | Stefan Boberg <[email protected]> | 2026-03-16 13:47:58 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-16 13:47:58 +0100 |
| commit | 176260a62242806d700fc3179d55edfef6ec8801 (patch) | |
| tree | f6df7d55618532dcac6a1b9b91c24d681ee0eeda /.github/workflows/validate.yml | |
| parent | Restructure zen builds using subcommands (#834) (diff) | |
| download | zen-176260a62242806d700fc3179d55edfef6ec8801.tar.xz zen-176260a62242806d700fc3179d55edfef6ec8801.zip | |
Push Docker images to ECR after building (#845)
- Add ECR login via aws CLI (using IMDS credentials)
- Tag and push images to 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver
- Use tag suffixes (-wine, -linux) to discriminate image variants
- Replace read-file-action with shell equivalent for VERSION.txt
- Enable docker-build and artifact uploads on all branches for validation
Diffstat (limited to '.github/workflows/validate.yml')
| -rw-r--r-- | .github/workflows/validate.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index dfdb9677d..2c99e8a46 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -279,16 +279,22 @@ jobs: unzip artifacts/win64/zenserver-win64.zip -d artifacts/win-extracted cp artifacts/win-extracted/zenserver.exe build/win-binary-staging/ - - name: Build Docker image (with Wine + Windows binary) + - name: Login to Amazon ECR + run: | + aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 728559092788.dkr.ecr.us-east-1.amazonaws.com + + - name: Build and push Docker image (with Wine + Windows binary) run: | docker build \ - -t zenserver-compute:latest \ + -t 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:latest-wine \ --build-arg WIN_BINARY_DIR=build/win-binary-staging \ -f docker/Dockerfile . + docker push 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:latest-wine - - name: Build Docker image (Linux only, no Wine) + - name: Build and push Docker image (Linux only, no Wine) run: | docker build \ - -t zenserver-compute-linux:latest \ + -t 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:latest-linux \ --build-arg INSTALL_WINE=false \ -f docker/Dockerfile . + docker push 728559092788.dkr.ecr.us-east-1.amazonaws.com/zenserver:latest-linux |