mirror of https://github.com/MISP/misp-docker
Push multi-arch images
parent
c5e184f88e
commit
f4ec130176
|
@ -7,18 +7,23 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# checkout the repository in the ubuntu-latest environment
|
||||
- uses: actions/checkout@v3
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU (for ARM emulation)
|
||||
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build the Docker images
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: |
|
||||
docker compose --env-file template.env build
|
||||
docker compose --env-file template.env build --parallel
|
||||
# Tag the image with the commit SHA[0:7]
|
||||
DOCKER_IMG_TAG=`echo "${{ github.sha }}" | cut -c 1-7`
|
||||
docker tag ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-latest ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-$DOCKER_IMG_TAG
|
||||
|
|
Loading…
Reference in New Issue