Some checks failed
Build and Push Docker Image / build (push) Failing after 37s
actions/checkout@v3 fails when querying the default branch for a different repository. Explicitly specifying ref:main skips the API discovery that was returning 'Not found'.
39 lines
888 B
YAML
39 lines
888 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Checkout schwab-scraper
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: b3nw/schwab-scraper
|
|
path: vendor/schwab-scraper
|
|
token: ${{ secrets.CR_PAT }}
|
|
ref: main
|
|
|
|
- name: Login to Gitea Container Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: gitea.ext.ben.io
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: gitea.ext.ben.io/${{ gitea.repository }}:latest
|