Skip to content

Create Container Ui

Create Container Ui #5

name: Create Container Ui
on:
workflow_dispatch:
branches: [ main ]
release:
types: [ "published" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
tags: dustinupdyke/ghosts-ui:latest
push: true
context: ./src/ghosts.ui/
file: ./src/ghosts.ui/Dockerfile
- name: Save Docker image as tar
run: |
docker save dustinupdyke/ghosts-ui:latest > ghosts-ui.tar
- name: Upload TAR file as artifact
uses: actions/upload-artifact@v4
with:
name: ghosts-ui
path: ghosts-ui.tar