Publish Development Codespace Image #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Development Codespace Image | |
on: | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
publish-code-space-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Build and push Codespace image | |
uses: docker/build-push-action@v3 | |
env: | |
REPLACE_CHINA_MIRROR: false | |
with: | |
context: . | |
file: .devcontainer/Dockerfile.dev | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:codespace |