Docker Image CI #31
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
# pull_request: | |
# branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: [self-hosted] | |
# defaults: | |
# run: | |
# shell: sh | |
# run: | |
# working-directory: static | |
steps: | |
# - name: Check Docker installation | |
# run: docker --version | |
# - name: Check Docker Info | |
# run: docker info | |
# - run: sudo -i | |
# - name: Setup Docker | |
# uses: docker-practice/actions-setup-docker@master | |
# timeout-minutes: 12 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# - name: Setup Qumu | |
# uses: docker/setup-qemu-action@v3 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./static | |
file: ./static/Dockerfile | |
platforms: linux/arm64 | |
push: true | |
# tags: localhost:5000/comtily:${{ github.sha }} | |
tags: docker.comtily.com:5000/comtily:${{ github.sha }} | |
- name: Deploy new image | |
uses: actions-hub/kubectl@master | |
with: | |
args: get pods | |