Merge pull request #72 from interTwin-eu/main #32
Workflow file for this run
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: build-images | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
virtual-kubelet: | |
runs-on: ubuntu-latest | |
#env: | |
# DOCKER_TARGET_PLATFORM: linux/arm64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Repo Owner | |
id: get_repo_owner | |
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') | |
- name: Build container base image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./ | |
outputs: "type=registry,push=true" | |
tags: | | |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/virtual-kubelet-inttw:${{ env.RELEASE_VERSION }} | |
file: ./docker/Dockerfile.vk | |
platforms: linux/amd64, linux/arm64 | |
virtual-kubelet-refrest-token: | |
runs-on: ubuntu-latest | |
#env: | |
# DOCKER_TARGET_PLATFORM: linux/arm64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Repo Owner | |
id: get_repo_owner | |
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') | |
- name: Build container base image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./ | |
outputs: "type=registry,push=true" | |
tags: | | |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/virtual-kubelet-inttw-refresh:${{ env.RELEASE_VERSION }} | |
file: ./docker/Dockerfile.refresh-token | |
platforms: linux/amd64, linux/arm64 |