Skip to content

Commit

Permalink
ci release docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jul 6, 2023
1 parent 2b4368b commit 1c49cd7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- "v*"

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/go-rod/bartender
tags: |
type=semver,pattern={{version}}
- name: Login
uses: docker/login-action@v2
with:
registry: ghcr.io
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 1c49cd7

Please sign in to comment.