Skip to content

Commit

Permalink
create github action to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed May 22, 2024
1 parent 9e4940b commit 5696901
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Docker Container

on:
push:
branches:
- main
- staging

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: devkba/cake2-app-template:${{ GITHUB_REF_NAME }}

0 comments on commit 5696901

Please sign in to comment.