Skip to content

feat: port Containerfile to Vib format #60

feat: port Containerfile to Vib format

feat: port Containerfile to Vib format #60

Workflow file for this run

name: Image
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: vanilla-os/[email protected]
with:
recipe: 'recipe.yml'
- uses: actions/upload-artifact@v4
with:
name: Containerfile
path: Containerfile
- name: Build image
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/chronos-fe:main .
- name: Publish image
if: github.repository == 'vanilla-os/chronos-frontend' && github.ref == 'refs/heads/main'
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/vanilla-os/chronos-fe:main"