Skip to content

Commit 9edbee1

Browse files
committed
feat: remove cleanup and push to docker hub instead of GHCR
1 parent e7a4fa9 commit 9edbee1

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

.github/actions/docker-publish-action/action.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: "Publish to Docker registry"
22
description: "Publish an image/tags to a Docker registry"
33
inputs:
4-
registry:
5-
description: "Docker registry hostname"
6-
required: false
7-
default: "ghcr.io"
84
username:
95
description: "Docker registry account username"
106
required: true
@@ -28,10 +24,9 @@ runs:
2824
steps:
2925
- name: Set up Docker Buildx
3026
uses: docker/setup-buildx-action@v3
31-
- name: Login to GitHub Container Registry
27+
- name: Login to Docker Hub
3228
uses: docker/login-action@v3
3329
with:
34-
registry: ${{ inputs.registry }}
3530
username: ${{ inputs.username }}
3631
password: ${{ inputs.password }}
3732
- name: Extract metadata (tags, labels) for Docker

.github/workflows/publish.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,7 @@ jobs:
2828
with:
2929
branch: ${{ github.ref_name }}
3030
commit_sha: ${{ github.sha }}
31-
username: ${{ github.actor }}
32-
password: ${{ secrets.GITHUB_TOKEN }}
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
3333
image_name: ${{ github.repository_owner }}/fp-studio
3434
cuda_version: ${{ matrix.cuda-version }}
35-
cleanup:
36-
runs-on: ubuntu-latest
37-
needs: publish
38-
permissions:
39-
contents: read
40-
packages: write
41-
steps:
42-
- uses: vlaurin/[email protected]
43-
with:
44-
token: ${{ secrets.GITHUB_TOKEN }}
45-
user: ${{ github.repository_owner }}
46-
container: fp-studio
47-
dry-run: false
48-
prune-untagged: true

0 commit comments

Comments
 (0)