feat(devcontainer): remove unnecessary postCreateCommand #41
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: Prebuild Devcontainer | |
on: | |
# This workflow runs on pushes to the main branch and pull requests | |
# when the .devcontainer folder is modified or the .dockerignore file | |
# is modified. | |
push: | |
branches: | |
- main | |
paths: | |
- .devcontainer/** | |
- .dockerignore | |
- .github/workflows/prebuild.yml | |
pull_request: | |
paths: | |
- .devcontainer/** | |
- .dockerignore | |
- .github/workflows/prebuild.yml | |
permissions: | |
packages: write | |
jobs: | |
prebuild-devcontainer: | |
runs-on: ubuntu-24.04 | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# Set Docker buildx up for container build | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
# Log into GitHub Container Registry (GHCR) to store the image | |
- name: Log into GitHub Container Registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor || 'petersellars' }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Pre-build the container image | |
- name: Pre-build the container image | |
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3.1900000349 | |
with: | |
imageName: ghcr.io/catosplace-devcontainers/engineering-base | |
cacheFrom: ghcr.io/catosplace-devcontainers/engineering-base | |
push: always | |