Skip to content

testing build

testing build #2

name: Build Docker Images
on:
pull_request:
branches: [dev]
types: [closed]
jobs:
build:
name: push docker image to docker hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
ls -la
docker build -f ./.build-files/Dockerfile.loon.local -t local-loon:latest .
- name: tag the docker image
id: tag-docker-images
run: |
docker tag local-loon:latest ${{ secrets.DOCKERHUB_USERNAME }}/local-loon:beta-0.2
docker tag local-loon:latest ${{ secrets.DOCKERHUB_USERNAME }}/local-loon:latest
- name: push the docker image
id: push-docker-image
run: |
docker push ${{secrets.DOCKERHUB_USERNAME}}/local-loon:beta-0.2
docker push ${{secrets.DOCKERHUB_USERNAME}}/local-loon:latest