Skip to content

Adapted readme to trigger pipeline again #3

Adapted readme to trigger pipeline again

Adapted readme to trigger pipeline again #3

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image
run: |
IMAGE_NAME=${{ secrets.DOCKERHUB_USERNAME }}/myhello:${{ github.sha }}
docker build -t $IMAGE_NAME .
- name: Push Docker image
run: |
IMAGE_NAME=${{ secrets.DOCKERHUB_USERNAME }}/myhello:${{ github.sha }}
docker push $IMAGE_NAME