Skip to content

Add Dockerfile and release GH action #1

Add Dockerfile and release GH action

Add Dockerfile and release GH action #1

Workflow file for this run

name: docker
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build-and-push:
name: build-and-push
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: Get ref
id: parse_ref
run: |
echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
p2panda/bootstrap:latest
p2panda/bootstrap:${{ steps.parse_ref.outputs.tag }}