Create Container Pandora #12
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: Create Container Pandora | |
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-pandora:latest | |
push: true | |
context: ./src/ghosts.pandora/ | |
file: ./src/ghosts.pandora/Dockerfile | |
- name: Save Docker image as tar | |
run: | | |
docker save dustinupdyke/ghosts-pandora:latest > ghosts-pandora.tar | |
- name: Upload TAR file as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ghosts-pandora | |
path: ghosts-pandora.tar | |