Skip to content

blog: wait for connectivity before launching rocket #48

blog: wait for connectivity before launching rocket

blog: wait for connectivity before launching rocket #48

Workflow file for this run

name: Container CI / Latest
on:
push:
branches: [ master ]
jobs:
build-dwbrite-com-arm64:
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v3
- name: Install docker (fucking WHY)
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
- name: Start Docker
run: |
sudo dockerd &
- name: docker login
run: docker login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push dwbrite-com / arm64
run: |
docker build --network=host --platform linux/arm64 -t docker.io/dwbrite/dwbrite-com:latest-arm64 -f dwbrite-com/Dockerfile .
docker push docker.io/dwbrite/dwbrite-com:latest-arm64
build-dwbrite-com-amd64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install podman
run: sudo apt-get -y install podman
- name: Podman login
run: podman login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push dwbrite-com / amd64
run: |
podman build --platform linux/amd64 -t docker.io/dwbrite/dwbrite-com:latest-amd64 -f dwbrite-com/Dockerfile .
podman push docker.io/dwbrite/dwbrite-com:latest-amd64
build-media-dwbrite-com-arm64:
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v3
- name: Install docker (fucking WHY)
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
- name: Start Docker
run: |
sudo dockerd &
- name: docker login
run: docker login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push media-dwbrite-com / arm64
run: |
docker build --network=host --platform linux/arm64 -t docker.io/dwbrite/media-dwbrite-com:latest-arm64 -f media-dwbrite-com/Dockerfile .
docker push docker.io/dwbrite/media-dwbrite-com:latest-arm64
build-media-dwbrite-com-amd64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install podman
run: sudo apt-get -y install podman
- name: Podman login
run: podman login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push media-dwbrite-com / amd64
run: |
podman build --platform linux/amd64 -t docker.io/dwbrite/media-dwbrite-com:latest-amd64 -f media-dwbrite-com/Dockerfile .
podman push docker.io/dwbrite/media-dwbrite-com:latest-amd64
manifest-and-push-dwbrite-com:
runs-on: ubuntu-22.04
needs: [build-dwbrite-com-arm64, build-dwbrite-com-amd64]
steps:
- uses: actions/checkout@v3
- name: Install podman
run: sudo apt-get -y install podman
- name: Podman login
run: podman login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Create and push manifests
run: |
podman manifest create docker.io/dwbrite/dwbrite-com:latest
podman manifest add docker.io/dwbrite/dwbrite-com:latest docker.io/dwbrite/dwbrite-com:latest-arm64
podman manifest add docker.io/dwbrite/dwbrite-com:latest docker.io/dwbrite/dwbrite-com:latest-amd64
podman manifest push docker.io/dwbrite/dwbrite-com:latest docker.io/dwbrite/dwbrite-com:latest
manifest-and-push-media-dwbrite-com:
runs-on: ubuntu-22.04
needs: [build-media-dwbrite-com-arm64, build-media-dwbrite-com-amd64]
steps:
- uses: actions/checkout@v3
- name: Install podman
run: sudo apt-get -y install podman
- name: Podman login
run: podman login docker.io -u dwbrite -p ${{ secrets.REGISTRY_PASSWORD }}
- name: Create and push manifests
run: |
podman manifest create docker.io/dwbrite/media-dwbrite-com:latest
podman manifest add docker.io/dwbrite/media-dwbrite-com:latest docker.io/dwbrite/media-dwbrite-com:latest-arm64
podman manifest add docker.io/dwbrite/media-dwbrite-com:latest docker.io/dwbrite/media-dwbrite-com:latest-amd64
podman manifest push docker.io/dwbrite/media-dwbrite-com:latest docker.io/dwbrite/media-dwbrite-com:latest