Skip to content

v0.1.7 force-platform-app #18

v0.1.7 force-platform-app

v0.1.7 force-platform-app #18

Workflow file for this run

name: Docker Image CI for GHCR and DockerHub
on:
push:
branches:
- master
paths:
- ".github/workflows/docker_image.yaml"
- "Dockerfile"
release:
types:
- published
jobs:
push_to_registries:
name: Push Docker image to GHCR and DockerHub
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the repository
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: Log in to Docker Hub
if: github.event_name == 'release'
uses: docker/login-action@v3
with:
username: ${{ secrets.WHALE }}
password: ${{ secrets.TAIL }}
- name: Log in to the Container registry
if: github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.TENTACLE }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/aaronpb/force-platform-app
aaronrpb/force-platform-app
- name: Build and push Docker images
id: push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name == 'release' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}