Skip to content

Commit

Permalink
Update docker-image.yml t2
Browse files Browse the repository at this point in the history
  • Loading branch information
Milanka00 authored Sep 8, 2023
1 parent 4b4683e commit 9147ce9
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@ name: Docker Image CI

on:
push:
branches: [ "new-working" ]
branches:
- "new-working"
pull_request:
branches: [ "new-working" ]
branches:
- "new-working"

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# - name: Build the Docker image
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: docker login
- name: Checkout code
uses: actions/checkout@v3

- name: Docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD

- name: Build the Docker image
run: docker build . --file Dockerfile --tag milanka00/future-pro:$(date + %s)
run: docker build . --file Dockerfile --tag milanka00/future-pro:$(date +%s)

- name: Docker Push
run: docker push ${{secrets.DOCKER_USER}}/future-pro

0 comments on commit 9147ce9

Please sign in to comment.