tettztezzera
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
|
#https://docs.docker.com/build/ci/github-actions/push-multi-registries/
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -14,7 +16,7 @@ jobs:
|
|||||||
|
|
||||||
# INSTALL docker
|
# INSTALL docker
|
||||||
- run: apt-get update
|
- run: apt-get update
|
||||||
- run: apt-get install ca-certificates curl gnupg
|
- run: apt-get install ca-certificates curl gnupg dnsutils
|
||||||
- run: install -m 0755 -d /etc/apt/keyrings
|
- run: install -m 0755 -d /etc/apt/keyrings
|
||||||
- run: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
- run: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
- run: chmod a+r /etc/apt/keyrings/docker.gpg
|
- run: chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
@@ -22,12 +24,6 @@ jobs:
|
|||||||
- run: apt-get update
|
- run: apt-get update
|
||||||
- run: apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
- run: apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
# BUILD & PUSH
|
# BUILD & PUSH
|
||||||
- name: Checkout private tools
|
- name: Checkout private tools
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -49,6 +45,8 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: user/app:latest
|
tags: user/app:latest
|
||||||
secrets: |
|
secrets: |
|
||||||
|
|||||||
Reference in New Issue
Block a user