Added curl
to the final image
#10
Workflow file for this run
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: buildAndPushImage | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'dev' | |
pull_request: | |
branches: | |
- 'main' | |
env: | |
IMAGE_NAME: analysis-manager | |
IMAGE_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'testing' }} | |
jobs: | |
build-with-paketo-push-2-dockerhub: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to DockerHub Container Registry | |
run: echo $DOCKER_HUB_TOKEN | docker login -u well5a --password-stdin | |
env: | |
DOCKER_HUB_TOKEN: ${{ secrets.DOCKERHUBTOKEN }} | |
- name: Install pack CLI via the official buildpack Action https://github.com/buildpacks/github-actions#setup-pack-cli-action | |
uses: buildpacks/github-actions/[email protected] | |
- name: Install curl | |
run: | | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y curl | |
apt-get autoremove -y | |
apt-get autoclean -y | |
- name: Build app with pack CLI using Buildpack Cache image (see https://buildpacks.io/docs/app-developer-guide/using-cache-image/) & publish to Docker Hub | |
run: | | |
pack build index.docker.io/well5a/$IMAGE_NAME:$IMAGE_TAG \ | |
--builder paketobuildpacks/builder:base \ | |
--path . \ | |
--cache-image index.docker.io/well5a/$IMAGE_NAME-paketo-cache-image:$IMAGE_TAG \ | |
--publish |