Skip to content

ci: uci/copy-templates (#8) #4

ci: uci/copy-templates (#8)

ci: uci/copy-templates (#8) #4

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