Skip to content

add username

add username #46

name: Docker Image Dev
on:
push:
branches: [ dev ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wifi_db:dev
- name: Log in to GitHub Container Registry
run: echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u r4ulcl --password-stdin
- name: Push Docker Image to GHCR
run: docker push ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/wifi_db:dev