mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
Uses docker/build-push-action (#1149)
This commit is contained in:
32
.github/workflows/deploy.yml
vendored
32
.github/workflows/deploy.yml
vendored
@@ -43,19 +43,25 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Docker meta
|
||||||
uses: actions/checkout@v2
|
id: meta
|
||||||
- name: Set up QEMU
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
uses: docker/setup-qemu-action@v1
|
with:
|
||||||
- name: Set up Docker Buildx
|
images: amir20/dozzle
|
||||||
id: buildx
|
- name: Login to DockerHub
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/login-action@v1
|
||||||
- name: Available platforms
|
with:
|
||||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
- name: Docker Login
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
- name: Build and push
|
||||||
- name: Run Buildx
|
uses: docker/build-push-action@v2
|
||||||
run: make publish
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha
|
||||||
git-release:
|
git-release:
|
||||||
needs: [buildx]
|
needs: [buildx]
|
||||||
name: Github Release
|
name: Github Release
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -1,11 +1,3 @@
|
|||||||
TAG := $(shell git describe --tags)
|
|
||||||
PLATFROMS := linux/amd64,linux/arm/v7,linux/arm64/v8
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: publish
|
|
||||||
publish:
|
|
||||||
docker buildx build --build-arg TAG=$(TAG) --platform $(PLATFROMS) -t amir20/dozzle:latest -t amir20/dozzle:$(TAG) --push .
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@rm -rf static
|
@rm -rf static
|
||||||
|
|||||||
Reference in New Issue
Block a user