update base image
This commit is contained in:
@@ -8,13 +8,14 @@ on:
|
||||
|
||||
env:
|
||||
IMAGE_BASE: git.thuanle.me/public/base
|
||||
IMAGE: arch-docker-node
|
||||
IMAGE: docker-node
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
arch:
|
||||
- arm64
|
||||
- amd64
|
||||
runs-on: ${{ matrix.arch }}
|
||||
steps:
|
||||
@@ -40,3 +41,26 @@ jobs:
|
||||
.
|
||||
|
||||
docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest
|
||||
|
||||
amend-manifest:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.thuanle.me
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Push Docker manifest
|
||||
run: |
|
||||
echo "Delete existing manifest"
|
||||
docker manifest rm {{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest || true
|
||||
|
||||
echo "Create new manifest"
|
||||
docker manifest create {{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest \
|
||||
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-amd64-latest \
|
||||
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-arm64-latest
|
||||
|
||||
docker manifest push {{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest
|
||||
Reference in New Issue
Block a user