Configure VM to use external IP #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Artifacts arm64 | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/artifacts_arm64.yaml' | |
- 'Dockerfile' | |
push: | |
branches: | |
- "main" | |
jobs: | |
build-cuttlefish-cloud-orchestrator-arm64-docker-image: | |
runs-on: arm-ubuntu-arm-22.04-4core | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2 | |
- name: Get docker image filename and tag | |
run: | | |
short_sha=$(echo ${{ github.sha }} | cut -c1-8) | |
echo "image_path=cloud-orchestrator-docker-image-arm64-${short_sha}.tar" >> $GITHUB_ENV | |
echo "image_tag=cuttlefish-cloud-orchestrator:${short_sha}" >> $GITHUB_ENV | |
- name: Build docker image | |
run: docker build --force-rm --no-cache -t ${{ env.image_tag }} . | |
- name: Save docker image | |
run: docker save --output ${{ env.image_path }} ${{ env.image_tag }} | |
- name: Publish docker image | |
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0 | |
with: | |
name: docker-image-arm64 | |
path: ${{ env.image_path }} |