Merge pull request #32 from MauAgendar/luisgmunhoz-patch-7 #11
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: Build and Push Docker Images | |
on: | |
push: | |
branches: | |
- main | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
jobs: | |
build-and-push: | |
name: Build and Push Docker Images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: "Create env file" | |
run: | | |
echo "${{ secrets.DOCKER_ENV_FILE }}" > .env | |
- name: Build | |
run: | | |
docker compose build auth calendar | |
- name: Push Auth Image | |
env: | |
DOCKER_BUILDKIT: 1 | |
run: | | |
docker tag mauagendar-auth luisgmunhoz/mauagendar-auth | |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin | |
docker push luisgmunhoz/mauagendar-auth | |
- name: Push Calendar Image | |
env: | |
DOCKER_BUILDKIT: 1 | |
run: | | |
docker tag mauagendar-calendar luisgmunhoz/mauagendar-calendar | |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin | |
docker push luisgmunhoz/mauagendar-calendar |