Skip to content

Commit

Permalink
dormant
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Jan 25, 2024
1 parent 5bc5784 commit 06e2662
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# name: Build and Push Docker Image
name: Build and Push Docker Image


# on:
# push:
# branches:
# - Project-JA-3
on:
push:
branches:
- Project-JA-3


# jobs:
# build:
# runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest

# env:
# DOCKERPROJECT: "project-ja"
# architecture: "linux/arm64"
env:
DOCKERPROJECT: "project-ja"
architecture: "linux/arm64"

# steps:
# - name: Evaluate Commit Message
# run: |
steps:
- name: Evaluate Commit Message
run: |
# commitMessage="${{ github.event.head_commit.message }}";
commitMessage="${{ github.event.head_commit.message }}";
# if [ "$commitMessage" != "Update" ]; then
if [ "$commitMessage" != "Update" ]; then
# echo "Cancelling Workflow.";
# exit 1;
echo "Cancelling Workflow.";
exit 1;
# fi
fi
# - name: Checkout Repository
# uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v2

# - name: Login to Docker Registry
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUBUSERNAME }}
# password: ${{ secrets.DOCKERHUBTOKEN }}
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUBUSERNAME }}
password: ${{ secrets.DOCKERHUBTOKEN }}

# - name: Build and Push Docker Image
# run: |
# docker build --platform ${{ env.architecture }} -t ${{ env.DOCKERPROJECT }} .
- name: Build and Push Docker Image
run: |
docker build -t ${{ env.DOCKERPROJECT }} .
# docker tag ${{ env.DOCKERPROJECT }} ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest
# docker push ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest
docker tag ${{ env.DOCKERPROJECT }} ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest
docker push ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest

0 comments on commit 06e2662

Please sign in to comment.