This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
Update README.md #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
defaults: | |
run: | |
shell: bash | |
env: | |
DOCKER_REGISTRY: hazelops | |
DOCKER_IMAGE_NAME: ecs-cli | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Image | |
run: | | |
docker build -t $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME:latest . | |
- name: Push | |
run: | | |
docker push $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME:latest |