Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed May 16, 2024
1 parent 631a333 commit a906838
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Docker Images, Push to Registry, and Deploy

on: push

jobs:
build-and-push-amd64:
runs-on: ubuntu-latest
steps:
- name: Check out the private Ops repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
submodules: "recursive"

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: "lab:latest"
driver: cloud
endpoint: "lunary/lunary"

- name: Build test
uses: docker/build-push-action@v5
with:
context: .
file: ./ops/backend.Dockerfile
push: true
tags: |
lunary/backend:test
platforms: linux/amd64

0 comments on commit a906838

Please sign in to comment.