Skip to content

Commit a7abe0d

Browse files
committed
ci: optimize action
Signed-off-by: r3drun3 <[email protected]>
1 parent 7af3d01 commit a7abe0d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/oci.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ jobs:
5353
echo ${{steps.tagger.outputs.version}}
5454
echo ${{steps.tagger.outputs.version-without-v}}
5555
56+
- name: Log into ghcr
57+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
58+
with:
59+
registry: ghcr.io
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.GITHUB_TOKEN }}
62+
5663
- name: Build the OCI Image (x86_64)
57-
run: docker build -t ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }} .
64+
run: docker build -t ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }} --push .
5865
working-directory: .
5966

6067
- name: Build the ARM OCI Image
@@ -63,16 +70,3 @@ jobs:
6370
docker buildx build -t ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}-arm --platform linux/arm64 --push .
6471
working-directory: .
6572

66-
67-
- name: Log into ghcr
68-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
69-
with:
70-
registry: ghcr.io
71-
username: ${{ github.actor }}
72-
password: ${{ secrets.GITHUB_TOKEN }}
73-
74-
- name: Push the OCI Image (x86_64)
75-
run: docker push ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}
76-
77-
- name: Push the ARM OCI Image
78-
run: docker push ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}-arm

0 commit comments

Comments
 (0)