Skip to content

Commit

Permalink
Add lsst-dm/build-and-push for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roceb committed Aug 14, 2024
1 parent fad467c commit a5475b7
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,20 @@ name: ci
on:
push:
branches:
- master
- main
pull_request:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- 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: Checkout
uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v6
uses: lsst-dm/build-and-push@main
id: build
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/arm64
image: ${{ github.repository }}
push: true
tags: ghcr.io/${{ github.repository }}:latest

0 comments on commit a5475b7

Please sign in to comment.