Skip to content

Merge pull request #11 from ipfs-shipyard/uci/copy-templates #7

Merge pull request #11 from ipfs-shipyard/uci/copy-templates

Merge pull request #11 from ipfs-shipyard/uci/copy-templates #7

Workflow file for this run

---
name: Create and push Docker image
on:
push:
branches:
- "master"
- "dev"
jobs:
build-and-push-image:
runs-on: ubuntu-latest
environment: deployment
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: docker.io/ipfsshipyardbot/equinix-billing-tools
tags: |
type=raw,value=latest
type=sha,format=short
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Setup docker context for buildx
id: buildx-context
run: docker context create builders
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
endpoint: builders
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64