Skip to content

Commit 70a5af8

Browse files
authored
Merge pull request #295 from axel7083/revert/ci/release/reusable-actions
revert(release.yaml) reusable actions
2 parents 2a390b7 + d1c7642 commit 70a5af8

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -118,44 +118,30 @@ jobs:
118118
# env:
119119
# GITHUB_TOKEN: ${{ secrets.PODMAN_DESKTOP_BOT_TOKEN }}
120120

121-
build-oci:
121+
build:
122122
needs: [tag]
123123
runs-on: ubuntu-24.04
124124
permissions:
125125
contents: read
126-
outputs:
127-
artifact-id: ${{ steps.build-oci.outputs.artifact-id }}
126+
packages: write
128127
steps:
129-
- uses: podman-desktop/gh-extensions-actions/.github/actions/oci-build@af8cfa4713ec24dccca2b5f42eb2ca3b91c10264 # v0.1.1
130-
name: build-oci
131-
id: build-oci
128+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
132129
with:
133-
image-name: '${{ github.repository }}'
134130
ref: ${{ needs.tag.outputs.githubTag }}
135131

136-
publish-oci:
137-
needs: [tag, build-oci]
138-
runs-on: ubuntu-24.04
139-
permissions:
140-
contents: read
141-
packages: write
142-
id-token: write
143-
attestations: write
144-
steps:
145-
- uses: podman-desktop/gh-extensions-actions/.github/actions/oci-publish@af8cfa4713ec24dccca2b5f42eb2ca3b91c10264 # v0.1.1
146-
name: publish-oci
147-
with:
148-
image-name: '${{ github.repository }}'
149-
registry: 'ghcr.io'
150-
registry-username: ${{ github.repository_owner }}
151-
registry-password: ${{ secrets.GITHUB_TOKEN }}
152-
tag: ${{ needs.tag.outputs.extVersion }}
153-
artifact-id: ${{ needs.build-oci.outputs.artifact-id }}
154-
github-token: ${{ secrets.GITHUB_TOKEN }}
155-
run-id: ${{ github.run_id }}
132+
- name: Login to ghcr.io
133+
run: podman login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
134+
135+
- name: Build Image
136+
id: build-image
137+
run: |
138+
podman build --squash-all -t ghcr.io/${{ github.repository }}:${{ needs.tag.outputs.extVersion }} .
139+
podman push ghcr.io/${{ github.repository }}:${{ needs.tag.outputs.extVersion }}
140+
podman tag ghcr.io/${{ github.repository }}:${{ needs.tag.outputs.extVersion }} ghcr.io/${{ github.repository }}:latest
141+
podman push ghcr.io/${{ github.repository }}:latest
156142
157143
release:
158-
needs: [tag, publish-oci]
144+
needs: [tag, build]
159145
name: Release
160146
runs-on: ubuntu-24.04
161147
permissions:

0 commit comments

Comments
 (0)