maint: transfer OpenCL images to GitHub packages #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# _ _ _ _ _____ _ | |
# | | | | | | | | | __ \(_) | |
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __ | |
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__| | |
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ | | |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_| | |
# | | | | | |
# |_| |_| | |
# | |
# Copyright (c) 2021-2023 Claudio André <claudioandre.br at gmail.com> | |
# | |
# This program comes with ABSOLUTELY NO WARRANTY; express or implied. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, as expressed in version 2, seen at | |
# http://www.gnu.org/licenses/gpl-2.0.html | |
############################################################################### | |
# GitHub Action to build John the Ripper's Docker image | |
# More info at https://github.com/openwall/john-packages | |
--- | |
name: Movement | |
"on": | |
push: | |
branches: | |
- "move-image" | |
env: | |
REPO: ghcr.io/${{ github.repository_owner }}/john-ci | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build Docker image | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build container image | |
id: get-and-push | |
run: | | |
ls -la | |
docker pull claudioandre/john:opencl | |
docker pull claudioandre/john:opencl18 | |
# ghcr.io/openwall/john-ci:opencl | |
# ghcr.io/openwall/john-ci:opencl18 | |
docker tag claudioandre/john:opencl ghcr.io/openwall/john-ci:opencl | |
docker tag claudioandre/john:opencl18 ghcr.io/openwall/john-ci:opencl18 | |
docker images | |
# docker push ghcr.io/openwall/john-ci:opencl | |
# docker push ghcr.io/openwall/john-ci:opencl18 |