Build and Push Noble Full Base #16
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: Build and Push Noble Full Base | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
schedule: | |
- cron: '0 0 */3 * *' # Runs every 3 days at midnight UTC | |
jobs: | |
build-noble-full-base: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@master | |
- name: Login to Github Packages | |
uses: docker/login-action@master | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GH_TOKEN }} | |
- name: Set up Node.js | |
uses: actions/setup-node@main | |
with: | |
node-version: '20' | |
- name: Build noble-full-base devcontainer | |
run: | | |
npm install -g @devcontainers/cli | |
- name: Build noble-full-base devcontainer | |
run: | | |
devcontainer build --image-name ghcr.io/jvrck/noble-full-base --platform "linux/amd64" --push false --workspace-folder noble-full-base | |
- name: Push noble-full Docker image | |
run: | | |
docker push ghcr.io/jvrck/noble-full-base |