Skip to content

Commit

Permalink
may this please the gh-action-docker demi-gods
Browse files Browse the repository at this point in the history
  • Loading branch information
mplogas committed Mar 22, 2024
1 parent 561c8fa commit 83c6b73
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/docker-build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -21,27 +26,14 @@ jobs:
images: |
${{ vars.DOCKERHUB_USERNAME }}/km-filewatcher
# Docker tags to generate
tags: |
type=raw,value=latest
type=sha
- 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: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# tags: |
# type=raw,value=latest
# type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
#context: ./KernelMemory.FileWatcher
#dockerfile: ./KernelMemory.FileWatcher/Dockerfile
context: .
dockerfile: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 83c6b73

Please sign in to comment.