Skip to content

fixup

fixup #4

name: plotly-build-push
on:
push:
branches:
- "*-release"
- "main"
- "gha-ci"
jobs:
docker-build-push:
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/[email protected]
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.DEK_DEPLOYMENT_QUAY_USERNAME }}
password: ${{ vars.DEK_DEPLOYMENT_QUAY_TOKEN }}
- id: setup-pack
uses: buildpacks/github-actions/[email protected]
- id: package
run: |
#!/usr/bin/env bash
set -euo pipefail
PACKAGE="${REPO}/$(echo "$BP_ID" | sed 's/\//_/g')"
pack buildpack package --publish ${PACKAGE}:${VERSION}
echo "IMAGE_TAG=${PACKAGE}:${VERSION}" >> "$GITHUB_OUTPUT"
shell: bash
env:
REPO: quay.io/${{ github.repository_owner }}/apt-buildpack
VERSION: ${{ steps.branch-name.outputs.current_branch }}-sha-${{ github.sha }}
- run: docker push "$IMAGE_TAG"
env:
IMAGE_TAG: ${{ steps.package.outputs.IMAGE_TAG}}