Skip to content

Commit

Permalink
GH Docker image 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretSaturn committed Sep 29, 2024
1 parent 1523730 commit 727bfb9
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/Docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,23 @@ jobs:

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
IMAGE_NAME: secretpath
IMAGE_NAME: secretpath
IMAGE_TAG: latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')" \
-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -46,5 +47,7 @@ jobs:

- name: Build and Push Docker Image
run: |
docker-compose build
docker-compose push
docker compose build --pull
docker compose push
env:
DOCKER_BUILDKIT: 1

0 comments on commit 727bfb9

Please sign in to comment.