Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Bump actions/checkout from 3 to 4 #83

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #83

Workflow file for this run

name: Build and publish to ghcr.io
on:
pull_request:
branches:
- main
- 'release/*'
push:
branches:
- main
- 'release/*'
tags:
- '*'
jobs:
build:
name: Clone, Build and Publish
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/ledgerhq/bitcoin-lib-grpc
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.CI_BOT_USERNAME }}
password: ${{ secrets.CI_BOT_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name == 'push' }}