Skip to content

Release vscode-server image #70

Release vscode-server image

Release vscode-server image #70

Workflow file for this run

name: Release vscode-server image
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 6'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- ubuntu
include:
- distro: ubuntu
variant: jammy
steps:
- run: |
TIMESTAMP=$(date --utc +'%Y%m%d')
IMAGE_TAGS="ghcr.io/${{ github.repository }}:latest"
IMAGE_TAGS="${IMAGE_TAGS},ghcr.io/${{ github.repository }}:${TIMESTAMP}"
IMAGE_TAGS="${IMAGE_TAGS},ghcr.io/${{ github.repository }}:${{ matrix.variant }}"
IMAGE_TAGS="${IMAGE_TAGS},ghcr.io/${{ github.repository }}:${TIMESTAMP}-${{ matrix.variant }}"
echo IMAGE_CREATED=$(date --utc +'%Y-%m-%dT%H:%M:%SZ') >> $GITHUB_ENV
echo IMAGE_TAGS=${IMAGE_TAGS} >> $GITHUB_ENV
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
build-args: |
DISTRO=${{ matrix.distro }}
VARIANT=${{ matrix.variant }}
DOCKER_VERSION=23.0.3
GO_VERSION=1.20.3
KUBECTL_VERSION=1.27.1
NODE_VERSION=18.16.0
PYTHON_VERSION=3.11.3
RUST_VERSION=1.69.0
labels: |
org.opencontainers.image.authors=Yang Sheng Han <progamesigner@gmail.com>
org.opencontainers.image.created=${{ env.IMAGE_CREATED }}
org.opencontainers.image.description=Microsoft Visual Studio Code Server for Remote Tunnel
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.title=vscode-server-${{ matrix.distro }}-${{ matrix.variant }}
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.vendor=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ github.sha }}
push: true
tags: ${{ env.IMAGE_TAGS }}