Moving to composite action #14
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: coresvc-fileserver-build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- km/add_action | |
env: | |
REGISTRY: ghcr.io | |
APP_NAME: coresvc-fileserver | |
ANNOTATION: azure-orbital-space-sdk-coresvc-fileserver.yaml | |
jobs: | |
build-publish-feature: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: microsoft/azure-orbital-space-sdk-github-actions/composite-actions/install-devcontainer-cli@main | |
- uses: microsoft/azure-orbital-space-sdk-github-actions/composite-actions/registry-login@km/add_dev-container | |
with: | |
registry: ${{ env.REGISTRY}} | |
username: ${{ secrets.GIT_HUB_USER_NAME }} | |
password: ${{ secrets.GIT_HUB_USER_TOKEN }} | |
- uses: microsoft/azure-orbital-space-sdk-github-actions/composite-actions/get-setup@km/add_dev-container | |
with: | |
setup-repo-url: ${{ secrets.SETUP_REPO_URL }} | |
# - name: Perform login steps | |
# shell: bash | |
# run: | | |
# echo "Performing login step" | |
# docker login ghcr.io -u ${{ secrets.GIT_HUB_USER_NAME }} -p ${{ secrets.GIT_HUB_USER_TOKEN }} | |
# echo "Performing sudo login step" | |
# sudo docker login ghcr.io -u ${{ secrets.GIT_HUB_USER_NAME }} -p ${{ secrets.GIT_HUB_USER_TOKEN }} | |
- name: Build amd64 container image | |
shell: bash | |
run: | | |
echo "Running build_containerImage.sh script:" | |
bash /var/spacedev/build/build_containerImage.sh --dockerfile Dockerfiles/Dockerfile --image-tag $SPACEFX_VERSION --architecture amd64 --repo-dir ${PWD} --app-name ${{ env.APP_NAME }} --annotation-config ${{ env.ANNOTATION}} | |
- name: Build arm64 container image | |
shell: bash | |
run: | | |
source /var/spacedev/env/spacefx.env | |
bash /var/spacedev/build/build_containerImage.sh --dockerfile Dockerfiles/Dockerfile --image-tag $SPACEFX_VERSION --architecture arm64 --repo-dir ${PWD} --app-name ${{ env.APP_NAME }} --annotation-config ${{ env.ANNOTATION}} |