Skip to content

Commit

Permalink
Build and push container to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
thasso committed Jul 9, 2024
1 parent cfe3361 commit c2a66c7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Container

on:
push:
branches:
- bikeshed-builds
paths:
- 'build-tools/**'
- '.github/workflows/build-container.yml'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
file: build-tools/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/dash-industry-forum/dashif-specs:latest

0 comments on commit c2a66c7

Please sign in to comment.