Skip to content

Commit

Permalink
Added version support to docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
shimberger authored Nov 25, 2021
1 parent 7f5e944 commit 1af7d41
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- 'main'
tags:
- 'v*.*.*'

jobs:
docker:
Expand All @@ -12,6 +14,21 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
shimberger/wg-http-proxy
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -31,5 +48,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
shimberger/wg-http-proxy:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 1af7d41

Please sign in to comment.