Skip to content

Commit bb577f4

Browse files
committed
CICD
1 parent a9cef69 commit bb577f4

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/artifacts.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Artifacts
22

33
on:
4+
push:
5+
branches: [ main ]
46
workflow_call:
57
inputs:
68
publish:
@@ -92,13 +94,13 @@ jobs:
9294
9395
# Multiple exporters are not supported yet
9496
# See https://github.com/moby/buildkit/pull/2760
95-
- name: Determine build output
96-
uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1
97-
id: build-output
98-
with:
99-
cond: ${{ inputs.publish }}
100-
if_true: type=image,push=true
101-
if_false: type=oci,dest=image.tar
97+
# - name: Determine build output
98+
# uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1
99+
# id: build-output
100+
# with:
101+
# cond: ${{ inputs.publish }}
102+
# if_true: type=image,push=true
103+
# if_false: type=oci,dest=image.tar
102104

103105
- name: Login to GitHub Container Registry
104106
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
@@ -108,12 +110,12 @@ jobs:
108110
password: ${{ github.token }}
109111
if: inputs.publish
110112

111-
- name: Login to Docker Hub
112-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
113-
with:
114-
username: ${{ secrets.DOCKER_USERNAME }}
115-
password: ${{ secrets.DOCKER_PASSWORD }}
116-
if: inputs.publish
113+
# - name: Login to Docker Hub
114+
# uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
115+
# with:
116+
# username: ${{ secrets.DOCKER_USERNAME }}
117+
# password: ${{ secrets.DOCKER_PASSWORD }}
118+
# if: inputs.publish
117119

118120
- name: Build and push image
119121
id: build
@@ -130,7 +132,7 @@ jobs:
130132
labels: ${{ steps.meta.outputs.labels }}
131133
# cache-from: type=gha
132134
# cache-to: type=gha,mode=max
133-
outputs: ${{ steps.build-output.outputs.value }}
135+
outputs: type=image,push=true
134136
# push: ${{ inputs.publish }}
135137

136138
- name: Sign the images with GitHub OIDC Token

0 commit comments

Comments
 (0)