Skip to content

Build and push dev fb helper image #6

Build and push dev fb helper image

Build and push dev fb helper image #6

# Continuous Integration
name: Build and push dev fb helper image
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-push-image:
name: Build and push dev fb helper image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.ARTIFACTORY_REGISTRY }}
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile-fb-helper
push: true
tags: ${{ secrets.ARTIFACTORY_REGISTRY }}/fb-helper:dev
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
REPO_LOCATION=