Skip to content

Commit

Permalink
add docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MattePalte committed Jan 25, 2023
1 parent 31cbdd9 commit fc6eec1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docker_creation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker Creation

on:
push:
tags: ["v*.*.*"]


env:
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/morphq

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: ${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{raw}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit fc6eec1

Please sign in to comment.