Skip to content

Commit b6858cc

Browse files
committed
change image name
1 parent 11c6a89 commit b6858cc

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

.github/workflows/US1.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,13 @@ on:
1515

1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
18-
build:
18+
build-and-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
2222

2323
- name: Build Docker Image
24-
run: docker build -t mealplan:v1 .
25-
26-
- name: Run Tests
27-
run: |
28-
echo "Running tests..."
29-
# Replace with your actual test command, e.g. pytest, npm test, etc.
30-
echo "Tests passed!"
31-
32-
deploy:
33-
runs-on: ubuntu-latest
34-
needs: build
35-
steps:
36-
- uses: actions/checkout@v4
24+
run: docker build -t mealplan:staging .
3725

3826
- name: Deploy to Staging
3927
run: |
@@ -45,7 +33,5 @@ jobs:
4533
docker logs webserver > deployment.log
4634
4735
- name: Upload Deployment Logs
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: deployment-logs
51-
path: deployment.log
36+
run: |
37+
echo deployment.log

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
app:
33
container_name: webserver
4-
image: mealplan:v1
4+
image: mealplan:staging
55
ports:
66
- 80:80
77
volumes:

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ RUN chown -R www-data:www-data *
3131

3232
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
3333

34-
# docker build -t mealplan:v1 .
34+
# docker build -t mealplan:staging .

0 commit comments

Comments
 (0)