Skip to content

Commit

Permalink
Update Dockerfile and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ugurkontel committed Mar 12, 2024
1 parent 3c646f1 commit 905162d
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,43 @@ on:
- main
workflow_dispatch:

env:
PADISAH: Osman
IMAGE_NAME: phptodo-example
IMAGE_TAG: latest

jobs:
docker-img-build-job:
env:
PADISAH2: Orhan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pwd && ls -al
env:
PADISAH3: Murad
docker-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
echo $PADISAH
echo $PADISAH2
echo $PADISAH3

# - run: docker image build -t ugurkontel/phptodo-example:frontend -f ./Dockerfile.frontend
# - run: docker image build -t ugurkontel/phptodo-example:backend -f ./Dockerfile.backend
# - run: docker image build -t ugurkontel/phptodo-example:database -f ./Dockerfile.database
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Frontend
uses: docker/build-push-action@v5
with:
push: true
tags: ugurkontel/phptodo:frontend
file: ./Dockerfile.frontend

# - run: docker login -u ugurkontel -p P@ssw0rd!
- name: Build and push Backend
uses: docker/build-push-action@v5
with:
push: true
tags: ugurkontel/phptodo:backend
file: ./Dockerfile.backend

# - run: docker push ugurkontel/phptodo-example:frontend
# - run: docker push ugurkontel/phptodo-example:backend
# - run: docker push ugurkontel/phptodo-example:database
- name: Build and push Database
uses: docker/build-push-action@v5
with:
push: true
tags: ugurkontel/phptodo:database
file: ./Dockerfile.database

0 comments on commit 905162d

Please sign in to comment.