Skip to content

Update all dependencies (#350) #22

Update all dependencies (#350)

Update all dependencies (#350) #22

Workflow file for this run

---
name: Build
on:
push:
branches:
- "main"
jobs:
lint:
uses: gazwald/cdk-docker/.github/workflows/lint.yaml@main
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v3
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Set versions"
run: scripts/set-github-env
- name: "Build and push"
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
build-args: |
"CDK_VERSION=${{ env.CDK_VERSION }}"
"DOCKER_VERSION=${{ env.DOCKER_VERSION }}"
"NODE_VERSION=${{ env.NODE_VERSION }}"
"PIP_VERSION=${{ env.PIP_VERSION }}"
"POETRY_VERSION=${{ env.POETRY_VERSION }}"
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.CDK_VERSION }}
cache-from: ghcr.io/${{ github.repository }}:latest
cache-to: ghcr.io/${{ github.repository }}:latest