mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: docker-alpine-epusdt
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "master"
|
|
tags:
|
|
- "v*"
|
|
|
|
env:
|
|
DOCKERHUB_NAMESPACE: gmwallet
|
|
IMAGE_NAME: epusdt
|
|
|
|
jobs:
|
|
push-docker-hub:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set Up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set Up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Docker Metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.DOCKERHUB_NAMESPACE }}/${{ env.IMAGE_NAME }}
|
|
tags: |
|
|
type=raw,value=alpine
|
|
type=raw,value=latest,enable={{is_default_branch}}
|
|
type=ref,event=branch,suffix=-alpine
|
|
type=ref,event=tag,suffix=-alpine
|
|
type=sha,prefix=sha-,suffix=-alpine
|
|
|
|
- name: Login To Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build And Push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
build-args: |
|
|
API_RATE_URL=${{ vars.API_RATE_URL }}
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|