slim images, pushing to docker hub from github
This commit is contained in:
parent
1c8adf660a
commit
5f88d7a0f6
@ -1 +1,4 @@
|
||||
public
|
||||
public
|
||||
.git
|
||||
.github
|
||||
.jenkins
|
28
.github/workflows/pages.yml
vendored
28
.github/workflows/pages.yml
vendored
@ -60,6 +60,34 @@ jobs:
|
||||
with:
|
||||
path: ./public
|
||||
|
||||
package:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build] # for ignoring bad builds
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build CLI Container
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: sarsoo/sarsooxyz.hugo:latest
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
environment:
|
||||
|
@ -7,5 +7,5 @@ RUN hugo \
|
||||
--minify \
|
||||
--baseURL https://sarsoo.xyz/
|
||||
|
||||
FROM nginx
|
||||
FROM nginx:alpine-slim
|
||||
COPY --from=build /sarsooxyz.hugo/public /usr/share/nginx/html/
|
Loading…
Reference in New Issue
Block a user