forked from TremoloSecurity/smtp-blackhole
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·37 lines (34 loc) · 1.04 KB
/
dockerbuild.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
name: dockerbuild
on:
push:
branches:
- 'master'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v1
- name: Auth gcloud
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}'
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v0
with:
project_id: mythical-games
- name: Configure gcloud and git
run: |
gcloud auth configure-docker us-docker.pkg.dev
git config --global user.name "Mythical Buildbot"
git config --global user.email "[email protected]"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: us-docker.pkg.dev/mythical-games/saga/smtp-blackhole:latest