Skip to content

Commit

Permalink
Add github action to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Apr 23, 2024
1 parent 65d0efe commit 473c8a6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build_image

on:
push:
branches:
- 'master'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ixsystems/apps_validation:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 473c8a6

Please sign in to comment.