forked from neonwatty/meme-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commenting out pro build workflow for now
- Loading branch information
Showing
1 changed file
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |