tools/.github/workflows/devcontainer.yml

31 lines
697 B
YAML
Raw Normal View History

2023-12-12 02:02:17 +01:00
name: Publish devcontainer stuff
on:
push:
branches:
- "main"
paths:
- "devcontainer/**"
- ".github/workflows/devcontainer.yml"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log into Registry
uses: docker/login-action@v2
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Publish features
uses: devcontainers/action@v1
with:
publish-features: "true"
base-path-to-features: "./devcontainer/feature"
oci-registry: ${{ vars.REGISTRY }}