Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): pre-build and publish of DevContainer #9

Merged
merged 5 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# act
*.env
*.secrets

# git
.git
.gitattributes

# commitlint
commitlint.config.js
.husky

# Dependencies
node_modules
package*.json

# Docs
*.md
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- main
pull_request:

permissions:
packages: write

jobs:
prebuild-devcontainer:
runs-on: ubuntu-latest
Expand All @@ -26,7 +29,14 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.actor || 'petersellars' }}
password: ${{ secrets.GITHUB_TOKEN }}


# Per-build the container image
- name: Pre-build the container image
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/catosplace-devcontainers/engineering-base
cacheFrom: ghcr.io/catosplace-devcontainers/engineering-base
push: always

10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# act environment file
.env
.secrets
# act
*.env
*.secrets

# Dependency directories
node_modules/
# Dependencies
node_modules
Loading