Refactor Dockerfile to use multi-stage builds for Metricbeat and remove outdated FROM version update step
This commit is contained in:
parent
b6c250540a
commit
b1c50472fb
2 changed files with 31 additions and 4 deletions
|
@ -27,9 +27,6 @@ jobs:
|
|||
username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }}
|
||||
password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}
|
||||
|
||||
- name: Update Dockerfile FROM version
|
||||
run: sed -i "s|^FROM .\+|FROM docker.elastic.co/beats/metricbeat-oss:${{ env.VERSION }}|" Dockerfile
|
||||
|
||||
- name: Build and push to gitea registry
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue