browsers/.forgejo/workflows/build.yaml

37 lines
869 B
YAML
Raw Normal View History

2025-01-05 04:08:19 +01:00
name: build image
2025-01-05 04:03:09 +01:00
on:
pull_request:
types:
- synchronize
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: docker
steps:
2025-01-05 04:21:17 +01:00
- uses: actions/checkout@v4
2025-01-05 04:03:09 +01:00
- name: Install node
uses: actions/setup-node@v3
with:
node-version: latest
2025-01-05 04:08:19 +01:00
- run: apt-get update && apt-get install -y --no-install-recommends docker.io
2025-01-05 04:03:09 +01:00
-
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