Skip to content

Merge pull request #9 from interlay/brendon/chore-merge-upstream-0.9.3 #34

Merge pull request #9 from interlay/brendon/chore-merge-upstream-0.9.3

Merge pull request #9 from interlay/brendon/chore-merge-upstream-0.9.3 #34

Workflow file for this run

name: Build Docker image
on:
push:
branches:
- master
- interlay-master
- docker
jobs:
build-and-push-image:
runs-on: [self-hosted, linux]
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/interlay/chopsticks
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,prefix={{branch}}-
- 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
if: github.event_name != 'pull_request'
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}