diff --git a/.gihub/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml similarity index 95% rename from .gihub/workflows/deploy-image.yml rename to .github/workflows/deploy-image.yml index 6196305..e7d2e43 100644 --- a/.gihub/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -4,7 +4,9 @@ name: Create and publish a Docker image # Configures this workflow to run every time a change is pushed to the branch called `release`. on: push: - branches: ['release'] + branches: [ "main" ] + pull_request: + branches: [ "main" ] # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: diff --git a/.github/workflows/docker-image2.yml b/.github/workflows/docker-image2.yml deleted file mode 100644 index 3f53646..0000000 --- a/.github/workflows/docker-image2.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)