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: ${{ github.actor }} password: ${{ github.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