Skip to content

Commit

Permalink
Test: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCloudBricklayer committed Apr 21, 2024
1 parent 320d7d0 commit 98e9655
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@ env:
NGINX_NAME: ${{ secrets.NGINX_NAME }}
jobs:

#build:
# #runs-on: [self-hosted, linux, amd64]
# runs-on: ubuntu-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v4
# -
# 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 ${{ env.APP_NAME }} image
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: |
# ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:latest,
# ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:${{ github.sha }}
# no-cache: true
# platforms: linux/amd64
# -
# name: Build and push ${{ env.NGINX_NAME }} image
# uses: docker/build-push-action@v5
# with:
# context: ./nginx/
# push: true
# tags: |
# ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:latest,
# ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:${{ github.sha }}
# no-cache: true
# platforms: linux/amd64
build:
#runs-on: [self-hosted, linux, amd64]
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
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 ${{ env.APP_NAME }} image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:latest,
${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:${{ github.sha }}
no-cache: true
platforms: linux/amd64
-
name: Build and push ${{ env.NGINX_NAME }} image
uses: docker/build-push-action@v5
with:
context: ./nginx/
push: true
tags: |
${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:latest,
${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:${{ github.sha }}
no-cache: true
platforms: linux/amd64
Deploy:
runs-on: ubuntu-latest
environment:
Expand Down

0 comments on commit 98e9655

Please sign in to comment.