Adding more debug #147
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: Forms flow analytics push to registry | |
on: | |
push: | |
branches: | |
- formsflow | |
- formsflow-merge | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
working-directory: . | |
jobs: | |
build-and-push-image-to-dockerhub: | |
if: github.repository == 'AOT-Technologies/redash' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- image: formsflow/redash | |
context: . | |
dockerfile: Dockerfile | |
name: app | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
install: true | |
- name: Set version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@main | |
- run: echo ${{ steps.package-version.outputs.current-version }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: ${{ matrix.image }} | |
tags: ${{ steps.package-version.outputs.current-version }} | |
- name: Log in to the Container registry | |
uses: docker/login-action@v1 | |
with: | |
# registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ matrix.name }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-${{ matrix.name }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ${{ matrix.context }} | |
# builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
# file: ${{ matrix.dockerfile }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
# cache-from: type=local,src=/tmp/.buildx-cache | |
# cache-to: type=local,dest=/tmp/.buildx-cache-new | |
# - name: Move cache | |
# run: | | |
# rm -rf /tmp/.buildx-cache | |
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |