Skip to content

Commit

Permalink
Build and Push ARM Docker Image with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-fironda committed Feb 14, 2025
1 parent 24aafa4 commit b702fe9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release_arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Push ARM Docker Image

on:
push:
tags:
- '*'
workflow_dispatch:

env:
IMAGE_NAME: plone-backend

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Determine Docker tag
id: vars
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "version=$VERSION" >> $GITHUB_ENV
- name: Build and push Docker image (ARM)
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.version }}-arm64
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest-arm64
no-cache: true

0 comments on commit b702fe9

Please sign in to comment.