Merge pull request #102 from rmitchellscott/docker-version-tags

chore: update docker build action, also run on tag action
This commit is contained in:
Matt Walsh
2025-06-04 21:12:35 -05:00
committed by GitHub

View File

@@ -1,5 +1,12 @@
name: build-docker name: build-docker
on: push
on:
push:
branches:
- main
tags:
- 'v*.*.*'
- 'v*.*'
jobs: jobs:
build: build:
@@ -13,7 +20,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: | images: |
ghcr.io/netbymatt/ws4kp ghcr.io/netbymatt/ws4kp
@@ -27,18 +34,18 @@ jobs:
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=sha type=sha
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Buildx - name: Set up Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push - name: Build and Push
id: docker_build id: docker_build
uses: docker/build-push-action@v3 uses: docker/build-push-action@v6
with: with:
context: . context: .
pull: true pull: true