Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonCatalyst authored Aug 14, 2024
1 parent cea678e commit 032d5e8
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish
name: Build and Publish Docker Image

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
- 'v*.*.*'

jobs:
build:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -17,22 +17,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up Docker credentials
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
run: |
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t your-dockerhub-username/your-image-name:latest --push .
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t your-image-name:latest --push .
- name: Set up Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 032d5e8

Please sign in to comment.