mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Create build.ym
Branches docker runs on
This commit is contained in:
parent
66e8b6113e
commit
51eb8bc67e
1 changed files with 32 additions and 0 deletions
32
.github/workflows/build.ym
vendored
Normal file
32
.github/workflows/build.ym
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PAT }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver: cloud
|
||||
endpoint: "eitchess/eitchess"
|
||||
install: true
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
tags: "${{ vars.DOCKER_USER }}/docker-build-cloud-demo:latest"
|
||||
# For pull requests, export results to the build cache.
|
||||
# Otherwise, push to a registry.
|
||||
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue