-
Notifications
You must be signed in to change notification settings - Fork 103
38 lines (30 loc) · 1.08 KB
/
release-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build and Push Docker Image
on:
release:
types: [published]
workflow_dispatch:
env:
DOCKER_CLI_EXPERIMENTAL: enabled
IMAGE_NAME: decred/dcrdex
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Set up QEMU
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a #v3.3.0
- name: Setup Docker buildx action
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 #v3.8.0
- name: Build and Push Docker Image
run: |
docker buildx build \
-f client/Dockerfile.release \
--platform linux/arm64,linux/amd64 \
--tag ${{ env.IMAGE_NAME }}:${{ github.ref_name }} \
--output "type=registry" .