Skip to content

Commit

Permalink
Adding Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vooperino authored Mar 20, 2024
1 parent bf7db91 commit 5ca3b8c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitlab/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy

on:
push:
branches: main

jobs:
container:
name: Build and Push container
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Repo Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build Container
run: |
chmod -R 755 build.sh
sh build.sh
- name: Deploy to Docker Hub
run: |
docker push vooplv/webcontainer:core
docker push vooplv/webcontainer:nginx
docker push vooplv/webcontainer:openresty

0 comments on commit 5ca3b8c

Please sign in to comment.