Skip to content

Build and Push Devcontainer #48

Build and Push Devcontainer

Build and Push Devcontainer #48

Workflow file for this run

name: Build and Push Devcontainer
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: fstarlang/pulse-base-devcontainer
jobs:
build-and-push:
if: github.repository == 'FStarLang/pulse'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: .devcontainer/fromscratch/minimal.Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}