Skip to content

Commit

Permalink
fix(workflow): added docker buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 16, 2024
1 parent 04c0600 commit 3b21279
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/docker_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,33 @@ name: Build and publish Docker Image to Dockerhub
on:
push:
branches:
- 'main'
- "main"
paths-ignore:
- '**.md'
- 'LICENSE'
- "**.md"
- "LICENSE"

jobs:
docker:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- name: Check out the repo
- name: Checkout
uses: actions/checkout@v4

- name: Log in to Docker Hub
- 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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v2
with:
images: metakgp/kronos

- name: Build and push docker image
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: metakgp/kronos:latest
labels: ${{ steps.meta.outputs.labels }}
tags: metakgporg/kronos:latest

0 comments on commit 3b21279

Please sign in to comment.