Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuomas Tielinen committed Aug 26, 2024
1 parent 2797b06 commit 345bba6
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu
45 changes: 45 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "Ubuntu",
"build": {
"dockerfile": "Containerfile"
},
"mounts": [
"source=${localEnv:HOME},target=/host-home-folder,type=bind,consistency=cached"
],
"features": {
"ghcr.io/rjfmachado/devcontainer-features/cloud-native:1": {},
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/hspaans/devcontainer-features/ansible-lint:1": {},
"ghcr.io/akhildevelops/devcontainer-features/pip:0": {
"PACKAGES": "ansible"
},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jq": "latest",
"yq": "latest"
},
"ghcr.io/gickis/devcontainer-features/kubeseal:1": {},
"ghcr.io/schlich/devcontainer-features/starship": {},
"ghcr.io/paul-gilber/devcontainer-features/buildah-apt-get:1": {}
},
"customizations": {
"vscode": {
"settings": {
"ansible.validation.lint.path": "/usr/local/bin/ansible-lint",
"ansible.ansible.path": "/usr/local/bin/ansible"
},
"extensions": [
"adamhartford.vscode-base64",
"coolbear.systemd-unit-file",
"GitHub.copilot",
"GitHub.copilot-chat",
"GitHub.vscode-github-actions",
"jlcs-es.x509-parser",
"mads-hartmann.bash-ide-vscode",
"ms-azuretools.vscode-docker",
"redhat.ansible",
"redhat.vscode-yaml",
"yzhang.markdown-all-in-one"
]
}
}
}
30 changes: 30 additions & 0 deletions .github/workflows/build-ansible-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'build'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
schedule:
- cron: '30 5 * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout (GitHub)
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/tuomastielinen/dev-container-work-tools/devcontainer
cacheFrom: ghcr.io/tuomastielinen/dev-container-work-tools/devcontainer
push: always
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# dev-container-work-tools

## Dev Containers

Available features can be found [here](https://containers.dev/features).

0 comments on commit 345bba6

Please sign in to comment.