Skip to content

Commit

Permalink
docker release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed May 24, 2024
1 parent 3cf2a8d commit f9d4618
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and publish docker image

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

jobs:
build:
name: Clone, Build, Publish
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: false # This prevents submodules from being checked out

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

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

- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
scrolltech/frontends
tags: |
type=semver,pattern={{version}}
- name: Build and push image
id: build
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit f9d4618

Please sign in to comment.