Skip to content

Merge pull request #1 from UST-DeMAF/plugin #7

Merge pull request #1 from UST-DeMAF/plugin

Merge pull request #1 from UST-DeMAF/plugin #7

name: buildAndPushImage
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
env:
IMAGE_NAME: layout-pipeline
IMAGE_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'testing' }}
jobs:
build-with-paketo-push-2-dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Login to DockerHub Container Registry
run: echo $DOCKER_HUB_TOKEN | docker login -u 365bit --password-stdin
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKERHUBTOKEN }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag 365bit/$IMAGE_NAME:$IMAGE_TAG
- name: Push the Docker image
run: docker push 365bit/$IMAGE_NAME:$IMAGE_TAG