Files
bitcoin-docker/.gitea/workflows/build.yaml
Bill e805dadccc
Some checks failed
Build / build (push) Failing after 2m9s
Switch buid action to build and push
2024-09-15 14:53:03 -04:00

51 lines
1.5 KiB
YAML

name: Build
run-name: Build Docker Image
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install docker
uses: papodaca/install-docker-action@main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Docker build
id: prepare
run: |
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }
BITCOIN_VERSION='24'
LATEST_BITCOIN_MAJOR_VERSION=$(find . -type d -maxdepth 1 -not -path '*/\.*' | sort -n | tail -n 1 | cut -c 3-)
PLATFORMS="linux/amd64"
PUSH=false
TAGS='bill/bitcoin-docker:24'
echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo ::set-output name=docker_platforms::${PLATFORMS}
echo ::set-output name=docker_username::${{ gitea.repository_owner }}
echo ::set-output name=push::${PUSH}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=build::true
- name: Login into Registry
uses: docker/login-action@v3
with:
registry: https://git.prettyhefty.com
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: bill/bitcoin-docker:24