diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..1ee31a2 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,23 @@ +name: Create Image + +env: + version: $(date +%s) + +on: + push: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --tag registry.ohrenpirat.de:5000/mwildt/registry-proxy:latest + - name: Login Registry + run: echo ${{ secrets.DOCKER_REPO_KEY }} | docker login -u github-build --password-stdin registry.ohrenpirat.de:5000 + - name: Docker Push + run: docker push registry.ohrenpirat.de:5000/mwildt/mwildt/registry-proxy:latest