Skip to content

Push to Docker Hub

Push to Docker Hub #38

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Bitwarden Secrets Manager GitHub Action
uses: bitwarden/sm-action@v1.0.0
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
secrets: |
d8a56663-858c-4aac-b0a2-afcd00edf2f1 > DOCKER_USER
98fc7325-57d2-4910-b37c-afcd00ed81b7 > DOCKER_PASSWORD
- uses: actions/checkout@v3
- name: docker login
run:
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: docker build
run: docker build . --file Dockerfile --tag $DOCKER_USER/bw-cli:latest
- name: docker push
run: docker push $DOCKER_USER/bw-cli:latest