Skip to content

fix (#3)

fix (#3) #10

Workflow file for this run

name: build_tag
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
#on:
# push:
# branches:
# - init
jobs:
build:
runs-on: ubuntu-22.04
environment: CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
registry: registry.hub.docker.com
- name: Build and Push Image
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64 ,linux/arm64/v8
tags: |
registry.hub.docker.com/${{github.repository}}:${{github.ref_name}}
registry.hub.docker.com/${{github.repository}}:latest