Skip to content

Install vscode-proxy in the right place #22

Install vscode-proxy in the right place

Install vscode-proxy in the right place #22

Workflow file for this run

name: Build and push container image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# For biggish images, github actions runs out of disk space.
# So we cleanup some unwanted things in the disk image, and reclaim that space for our docker use
# https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150
# and https://github.com/easimon/maximize-build-space/blob/b4d02c14493a9653fe7af06cc89ca5298071c66e/action.yml#L104
# This gives us a total of about 52G of free space, which should be enough for now
- name: cleanup disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
df -h
- name: Checkout files in repo
uses: actions/checkout@main
- name: Login to DockerHub
uses: docker/login-action@v4
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
# Source - https://stackoverflow.com/a/59819441
# Posted by peterevans, modified by community. See post 'Timeline' for change history
# Retrieved 2026-06-09, License - CC BY-SA 4.0
- name: Set git sha
id: vars
run: echo "git_sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/bake-action@v7
with:
source: .
push: true
vars: |
image_name_prefix=quay.io/2i2c/example-image-stack-
git_sha=${{ steps.vars.outputs.git_sha_short}}
# Lets us monitor disks getting full as images get bigger over time
- name: Show how much disk space is left
run: df -h