Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Giona Righini committed Aug 2, 2024
1 parent 88276ed commit 99b486e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Docker Image CI

on:
"on":
push:
branches: ["main"]
branches:
- develop
# test
pull_request:
branches: ["main"]
branches:
- main

jobs:
build:
Expand All @@ -24,11 +27,11 @@ jobs:
const version = JSON.parse(packageJson).version;
core.setOutput('version', version);
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -44,7 +47,10 @@ jobs:
# tags: sacconazzo/directus-monorepo-cicd-boilerplate:${{ steps.get_version.outputs.version }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag sacconazzo/directus-monorepo-cicd-boilerplate:${{ steps.get_version.outputs.version }}
run: docker build . --file Dockerfile --tag
sacconazzo/directus-monorepo-cicd-boilerplate:${{
steps.get_version.outputs.version }}

- name: Push image
run: docker push sacconazzo/directus-monorepo-cicd-boilerplate:${{ steps.get_version.outputs.version }}
run: docker push sacconazzo/directus-monorepo-cicd-boilerplate:${{
steps.get_version.outputs.version }}

0 comments on commit 99b486e

Please sign in to comment.