Skip to content

add warnet-bundle Dockerfile #1

add warnet-bundle Dockerfile

add warnet-bundle Dockerfile #1

Workflow file for this run

name: Publish Warnet app bundle image
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
push_to_registry:
name: Push warnet app bundle image to Docker Hub
runs-on: ubuntu-latest
permissions:
attestations: write
contents: read
id-token: write
packages: write
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/warnet-app
tags: |
type=ref,event=tag
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
labels: |
maintainer=bitcoindevproject
org.opencontainers.image.title=warnet-app
org.opencontainers.image.description=Warnet app bundle
- name: Build and maybe push Docker image
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: resources/images/warnet-bundle/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}