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:
|
|
|
|
- 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: ${{ github.actor }}
|
|
|
|
password: ${{ github.token }}
|
2025-01-05 04:11:47 +01:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
2025-01-05 04:03:09 +01:00
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
tags: code.bcarlin.net/oci/browsers:latest
|