Skip to content

Commit

Permalink
ci: build push image
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Nov 6, 2023
1 parent 7b7ac87 commit 6dbe57d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/plotly-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- id: setup-pack
uses: buildpacks/github-actions/[email protected]
- id: package
run: |
#!/usr/bin/env bash
set -euo pipefail
pack buildpack package --publish ${REPO}:${VERSION}
echo "IMAGE_TAG=${REPO}:${VERSION}" >> "$GITHUB_OUTPUT"
shell: bash
env:
REPO: quay.io/${{ github.repository_owner }}/apt-buildpack
VERSION: ${{ steps.branch-name.outputs.current_branch }}-sha-${{ github.sha }}

0 comments on commit 6dbe57d

Please sign in to comment.