Skip to content

Commit

Permalink
Added workflow to build & publish image (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmAximani0 authored Sep 21, 2023
1 parent 40130e1 commit 1ba6c26
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build & Publish Docker Image

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build & Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}:${{ github.ref_name }}

0 comments on commit 1ba6c26

Please sign in to comment.