Skip to content

Add docker action cache #7

Add docker action cache

Add docker action cache #7

Workflow file for this run

name: ci
on:
push:
# branches:
# - 'main'
jobs:
dockerhub-build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: List directory structure
run: ls -lah
-
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: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: vitobelgium/guppy:latest
context: ./server
file: ./server/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max