Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rm4nd authored Jul 7, 2024
1 parent 87c3768 commit 147422d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docker-image

on:
push:
branches:
- 'master'
paths-ignore:
- '**/README.md'

jobs:
docker-image:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
push: true
tags: l4rm4nd/voucheme:latest
build-args: |
VERSION=${{ github.sha }}
BRANCH=${{ github.ref_name }}
platforms: linux/amd64

0 comments on commit 147422d

Please sign in to comment.