Skip to content

tjsr Running Tagtool build. #79

tjsr Running Tagtool build.

tjsr Running Tagtool build. #79

Workflow file for this run

name: Build Tagtool
run-name: ${{ github.actor }} Running Tagtool build.
on: [push]
jobs:
build-tagtool:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
BUILDKIT_PROGRESS: plain
DBMIGRATE_IMAGE: tjsrowe/tagtool:dbmigrate-${{ github.sha }}
API_IMAGE: tjsrowe/tagtool:${{ github.sha }}
steps:
- name: Check out repositofy code
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx
restore-keys: |
${{ runner.os }}-single-buildx
- name: Login to Amazon ECR Public
id: login-ecr-public
if: ${{ github.actor != 'dependabot[bot]' }}
uses: aws-actions/amazon-ecr-login@v2
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
with:
registry-type: public
- name: Build dbmigrate image
uses: docker/build-push-action@v5
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
secrets: |
github=${{ secrets.GITHUB_TOKEN }}
file: Dockerfile.dbmigrate
push: ${{ github.actor != 'dependabot[bot]' }}
tags: ${{ github.actor != 'dependabot[bot]' && format('{0}/', steps.login-ecr-public.outputs.registry) || ''}}${{ env.DBMIGRATE_IMAGE }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Build API image
uses: docker/build-push-action@v5
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
secrets: |
github=${{ secrets.GITHUB_TOKEN }}
file: Dockerfile
push: ${{ github.actor != 'dependabot[bot]' }}
tags: ${{ github.actor != 'dependabot[bot]' && format('{0}/', steps.login-ecr-public.outputs.registry) || ''}}${{ env.API_IMAGE }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new