-
Notifications
You must be signed in to change notification settings - Fork 64
41 lines (32 loc) · 1.01 KB
/
create_socializer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Create Container Socializer
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-socializer
push: true
context: src/ghosts.pandora.socializer/src/
file: src/ghosts.pandora.socializer/src/Dockerfile
- name: Save Docker image as tar
run: |
docker save dustinupdyke/ghosts-socializer:latest > ghosts-socializer.tar
- name: Upload TAR file as artifact
uses: actions/upload-artifact@v2
with:
name: ghosts-socializer
path: ghosts-socializer.tar