Compare commits

...

6 Commits

Author SHA1 Message Date
ali nabil
ca99847375
Merge 5f55269366aff245022b74c83452bc9dbe5e737f into f2d13b8483f33e7dc6255014cbfd4b528d60bc22 2025-02-13 12:35:56 +01:00
ali nabil
5f55269366 change test file to try pipeline 2025-02-13 15:16:04 +04:00
ali nabil
b516259917 Rename the image by add tag alinabil 2025-02-13 14:52:57 +04:00
ali nabil
02c1804df0 change file extension to yml 2025-02-13 14:47:06 +04:00
ali nabil
26b4d16e21 add test file 2025-02-13 14:43:10 +04:00
ali nabil
faccb53521 Add work flows file 2025-02-13 13:47:38 +04:00
2 changed files with 37 additions and 0 deletions

35
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,35 @@
# .github/workflows/docker-image.yml
name: Docker Image CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/alinabil/getting-started:latest
ghcr.io/${{ github.repository_owner }}/alinabil/getting-started:${{ github.sha }}

2
test.txt Normal file
View File

@ -0,0 +1,2 @@
test
test 123