Merge branch 'main' of https://github.com/bjoernellens1/ros2_rmp
This commit is contained in:
commit
59d8af4c70
36
.github/workflows/docker-buildx-bake-build.yml
vendored
Normal file
36
.github/workflows/docker-buildx-bake-build.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: Docker Compose Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Change this to your main branch name
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
# - name: Login to Docker Hub (if needed)
|
||||
# uses: docker/login-action@v1
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
||||
|
||||
- name: Build and Push Docker Compose Services
|
||||
run: |
|
||||
docker buildx bake --push
|
||||
docker buildx bake -f docker-compose.yml --push
|
||||
#env:
|
||||
# COMPOSE_FILE: docker-compose.yml
|
Loading…
Reference in New Issue
Block a user