Skip to content

Update legacy key value format for ENV #3

Update legacy key value format for ENV

Update legacy key value format for ENV #3

Workflow file for this run

name: Publish Docker image on tag
on:
push:
tags:
- 'v*'
jobs:
push_to_dockerhub:
name: Push Docker image to Docker Hub
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract metadata
id: meta
run: |
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: getumbrel/bitcoind:${{ steps.meta.outputs.TAG }}
build-args: |
VERSION=${{ steps.meta.outputs.VERSION }}