Skip to content

Commit

Permalink
fix docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
Atralupus committed Dec 17, 2024
1 parent ed2651c commit f98521e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Docker Images

on:
push:
branches:
- ncip-24
workflow_dispatch:

jobs:
buildx:
runs-on: ubuntu-latest
strategy:
matrix:
docker:
- repo: planetariumhq/arena-service
dockerfile: Dockerfile
steps:
-
name: Checkout
uses: actions/checkout@v4
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/arm/v8,linux/amd64
-
name: Login to Docker Hub
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/arm64,linux/amd64
tags: ${{ matrix.docker.repo }}:git-${{ github.sha }}
file: ${{ matrix.docker.dockerfile }}
env:
BUILDKIT_PROGRESS: "plain"
43 changes: 0 additions & 43 deletions .github/workflows/publish_docker_image.yaml

This file was deleted.

0 comments on commit f98521e

Please sign in to comment.