Skip to content

Improve union ergonomics. #9

Improve union ergonomics.

Improve union ergonomics. #9

Workflow file for this run

name: Devcontainer
on:
# schedule:
# # Run daily at 00:00 UTC
# - cron: '0 0 * * *'
push:
branches:
- main
paths:
- 'opt/**'
- '.devcontainer/Containerfile'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: fstarlang/c2pulse-devcontainer
jobs:
build-and-push:
if: github.repository == 'FStarLang/c2pulse'
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/Containerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}