Skip to content

Commit

Permalink
Testing push to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
wcygan committed Jan 12, 2024
1 parent 0199c41 commit f9eccc2
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/push-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: ci

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Checkout code
uses: actions/checkout@v2

- name: Build and push twote-web Docker image
uses: docker/build-push-action@v5
with:
context: ./twote-web
platforms: linux/amd64,linux/arm64
push: true
tags: wcygan/twote-twote-web:latest

- name: Build and push twote-api Docker image
uses: docker/build-push-action@v5
with:
context: ./twote-api
platforms: linux/amd64,linux/arm64
push: true
tags: wcygan/twote-twote-api:latest

- name: Build and push accounts-backend Docker image
uses: docker/build-push-action@v5
with:
context: ./accounts-backend
platforms: linux/amd64,linux/arm64
push: true
tags: wcygan/twote-accounts-backend:latest

- name: Build and push profiles-backend Docker image
uses: docker/build-push-action@v5
with:
context: ./profiles-backend
platforms: linux/amd64,linux/arm64
push: true
tags: wcygan/twote-profiles-backend:latest

- name: Build and push tweets-backend Docker image
uses: docker/build-push-action@v5
with:
context: ./tweets-backend
platforms: linux/amd64,linux/arm64
push: true
tags: wcygan/twote-tweets-backend:latest

0 comments on commit f9eccc2

Please sign in to comment.