forked from tomas-bareikis/challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.11 KB
/
infrastructure.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
name: Building docker images to run challenge locally
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build for PHP
run: docker build --target php . -t aurelijusbanelis/challenge:php
- name: Build for JavaScript
run: docker build --target js . -t aurelijusbanelis/challenge:js
- name: Build for Go
run: docker build --target go . -t aurelijusbanelis/challenge:go
- name: Build for C# (.Net)
run: docker build --target cs . -t aurelijusbanelis/challenge:cs
- name: Login to Docker Hub
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: aurelijuschallengebot
password: ${{ secrets.DOCKERHUB_TOKEN_CHALLENGE_BOT }}
- name: Pushing latest images
if: github.event_name == 'push'
run: |
docker push aurelijusbanelis/challenge:php
docker push aurelijusbanelis/challenge:js
docker push aurelijusbanelis/challenge:go
docker push aurelijusbanelis/challenge:cs