Skip to content

Commit

Permalink
feat: add version build
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Apr 16, 2024
1 parent 852fa4c commit 0906765
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Latest

on:
workflow_dispatch:
push:
tags:
- "*.*.*"

env:
REGISTRY_IMAGE: soulteary/sqlite-wordpress

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- 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@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/arm/v5
push: true
tags: "${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: ci
name: Release Version

on:
workflow_dispatch:
push:
branches:
- "main"
Expand Down

0 comments on commit 0906765

Please sign in to comment.