Skip to content

Refactor: Port this project into typescript (#58) #2

Refactor: Port this project into typescript (#58)

Refactor: Port this project into typescript (#58) #2

name: Build and publish devcontainer
on:
push:
branches:
- main
paths:
- .devcontainer/Dockerfile
jobs:
build_dev_container:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: amd64, arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .devcontainer
file: .devcontainer/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository }}/devcontainer:latest
ghcr.io/${{ github.repository }}/devcontainer:node-20
ghcr.io/${{ github.repository }}/devcontainer:${{ github.sha }}