Skip to content

chore(deps): update all dependencies on docker #464

chore(deps): update all dependencies on docker

chore(deps): update all dependencies on docker #464

Workflow file for this run

name: build container image
on: push
jobs:
build:
if: github.event.pusher.name != 'dreamkast-cloudnativedays'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # because of using public registry
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v1
with:
registry-type: public
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: public.ecr.aws/f5j9d0q5/seaman
tags: |
type=sha,prefix=,format=long
type=ref,event=branch
type=semver,pattern={{version}}
- id: get-tag
run: |
if [[ "${{ github.ref }}" =~ ^refs/tags/ ]]; then
echo "::set-output name=tag::$(echo ${{ github.ref }} | sed -e 's|^refs/tags/\(.*\)$|\1|g')"
else
echo "::set-output name=tag::none"
fi
- name: Build
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
APP_VERSION=${{ steps.get-tag.outputs.tag }}
APP_COMMIT=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max