Skip to content

Commit

Permalink
Needed to add cgroup-parent parameter to the three build and push steps
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
  • Loading branch information
rbarkerSL committed Jun 10, 2024
1 parent 11ce557 commit 81ede39
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
docker-image-publish:
runs-on: [self-hosted, Linux, large, ephemeral]
runs-on: [self-hosted, Linux, medium, ephemeral]
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -71,17 +71,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0

- name: Build and push UI image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: ./ui
file: ./ui/Dockerfile
platforms: linux/amd64, linux/arm64
# push: true
push: false # disabled push for testing
tags: ${{ env.REGISTRY }}/${{ github.repository }}/ui:${{env.TAG}}

# Add control groups before performing the build and push SERVER image step
# Add control groups before performing the build and push steps
- name: Setup Control Groups
run: |
echo "::group::Get System Configuration"
Expand Down Expand Up @@ -120,6 +110,19 @@ jobs:
sudo cgclassify --sticky -g cpu,memory:${AGENT_GROUP_NAME} $(pgrep 'Runner.Listener' | tr '\n' ' ')
sudo cgclassify -g cpu,memory:${AGENT_GROUP_NAME} $(pgrep 'Runner.Worker' | tr '\n' ' ')
echo "::endgroup::"
echo "DOCKER_GROUP_NAME=${DOCKER_GROUP_NAME}" >> $GITHUB_ENV
- name: Build and push UI image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: ./ui
file: ./ui/Dockerfile
platforms: linux/amd64, linux/arm64
# push: true
push: false # disabled push for testing
tags: ${{ env.REGISTRY }}/${{ github.repository }}/ui:${{env.TAG}}
cgroup-parent: ${{env.DOCKER_GROUP_NAME}}

- name: Build and push SERVER image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
Expand All @@ -139,6 +142,7 @@ jobs:
# push: true
push: false # disabled push for testing
tags: ${{ env.REGISTRY }}/${{ github.repository }}/server:${{env.TAG}}
cgroup-parent: ${{env.DOCKER_GROUP_NAME}}

- name: Build and Push REPOSITORY Image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
Expand All @@ -160,3 +164,4 @@ jobs:
# push: true
push: false # disabled push for testing
tags: ${{ env.REGISTRY }}/${{ github.repository }}/repository:${{env.TAG}}
cgroup-parent: ${{env.DOCKER_GROUP_NAME}}

0 comments on commit 81ede39

Please sign in to comment.