Skip to content

workflows: begin work on docker image deployment #3

workflows: begin work on docker image deployment

workflows: begin work on docker image deployment #3

Workflow file for this run

name: docker-ci-cd
on:
push:
jobs:
docker-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-activation@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub CR
uses: docker/login-activation@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKsER_USERNAME }}/${{ github.event.repository.name }}:latest