browsers/.forgejo/workflows/build.yaml
Bruno Carlin d292afbec2
All checks were successful
build image / build (push) Successful in 1m12s
fix: add registry token to the workflow
2025-01-05 15:24:08 +01:00

36 lines
869 B
YAML

name: build image
on:
pull_request:
types:
- synchronize
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
with:
node-version: latest
- run: apt-get update && apt-get install -y --no-install-recommends docker.io
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.bcarlin.net
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build image
run: |
docker build -t code.bcarlin.net/oci/browsers:latest .
- name: Push image
run: |
docker push code.bcarlin.net/oci/browsers:latest