Skip to content

fix Dockerfile: remove unnecessary downloads for Postman and Ghidra #19

fix Dockerfile: remove unnecessary downloads for Postman and Ghidra

fix Dockerfile: remove unnecessary downloads for Postman and Ghidra #19

name: Publish pre-builded image to GHCR
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- '.devcontainer/**'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .devcontainer
file: .devcontainer/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/codevinci-codespace:latest
ghcr.io/${{ github.repository_owner }}/codevinci-codespace:${{ github.sha }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.description=CodeVinci GitHub Codespace Template