Skip to content

Commit

Permalink
commenting out pro build workflow for now
Browse files Browse the repository at this point in the history
  • Loading branch information
neonwatty committed Nov 8, 2024
1 parent 0b9ca75 commit db1cd96
Showing 1 changed file with 47 additions and 59 deletions.
106 changes: 47 additions & 59 deletions .github/workflows/pro-app-build.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,47 @@
name: "DockerBuild"

on:
workflow_dispatch:
pull_request:
push:
branches: ["pro-beta"]
paths:
- "meme_search_pro/meme_search_app/**"

jobs:
Build_And_Push_App:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Log in to Github Docker Image Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.TOKEN_GITHUB }}

# Uncomment to use Docker Hub
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.USERNAME_DOCKERHUB }}
# password: ${{ secrets.TOKEN_DOCKERHUB }}

- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.actor }}/meme_search_pro
# ${{ secrets.DOCKERHUB_USERNAME }}/meme-search
tags: type=ref,event=tag
flavor: latest=true

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Build and Upload for AMD64 and ARM64
uses: docker/build-push-action@v4
with:
context: ./meme_search_pro/meme_search_app
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# name: "pro app build"

# on:
# workflow_dispatch:
# pull_request:
# push:
# branches: ["main"]
# paths:
# - "meme_search_pro/meme_search_app/**"

# jobs:
# Build_And_Push_App:
# runs-on: ubuntu-22.04
# permissions:
# contents: read
# packages: write

# steps:
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

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

# - name: Log in to Github Docker Image Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: neonwatty
# password: ${{ secrets.TOKEN_GITHUB }}

# - name: Print current working directory
# run: pwd # Prints the current working directory

# - name: Print root directory contents
# run: ls -l .

# - name: Print app directory contents
# run: ls -l ./meme_search

# - name: Build and Upload for AMD64 and ARM64
# uses: docker/build-push-action@v6
# with:
# context: ./meme_search_pro/meme_search_app
# platforms: linux/amd64,linux/arm64
# push: true
# tags: ghcr.io/neonwatty/meme_search_pro:latest

0 comments on commit db1cd96

Please sign in to comment.