Merge branch 'main' into main #2
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: 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 |