1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-04 20:14:59 +01:00

Adds support for multi-arch (#306)

* Uses experimental docker multi-arch

* Fixes dockerfile to build node and golang images

* Adds ldflags

* Adds buildx to push.yml

* Adds docker login

* Adds login in again

* Login using run

* Login using run

* Adds Makefile

* Updates actions

* Fixes push
This commit is contained in:
Amir Raminfar
2020-03-18 14:13:35 -07:00
committed by GitHub
parent 4bde14bd6c
commit 3a24c6e665
10 changed files with 129 additions and 61 deletions

45
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
on:
push:
tags:
- "v*"
name: Test and Release
jobs:
npm-test:
name: npm test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: npm test
uses: actions/setup-node@v1
- name: npm it
run: npm it
go-test:
name: go test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: "1.14.x"
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -cover ./...
buildx:
needs: [go-test, npm-test]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Run Buildx
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Run Buildx
run: make publish