Skip to content

Commit

Permalink
chore: Add push-devcontainer.yml for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
k-taro56 committed Jun 20, 2024
1 parent fac6e52 commit 09bee8d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/push-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Push DevContainer

on:
push:
# branches:
# - main

jobs:
push-devcontainer:
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Push DevContainer
uses: devcontainers/ci@v0.3
with:
configFile: .devcontainer/self-build/devcontainer.json
imageName: ghcr.io/nid-kt/bot-worker-devcontainer
cacheFrom: ghcr.io/nid-kt/bot-worker-devcontainer
push: always

0 comments on commit 09bee8d

Please sign in to comment.