Skip to content

change function

change function #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Show current directory
run: pwd
- name: List files in the repository
run: ls -al
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Build the Docker image
run: docker build -f Dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/lifecycle:latest .
- name: Push the Docker image
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/lifecycle:latest